153 |
""" |
""" |
154 |
|
|
155 |
def addTests(list, dirname, names): |
def addTests(list, dirname, names): |
156 |
|
if dirname[0] in [',', '{']: return |
157 |
|
if len(dirname) > 2 and dirname[2] in [',', '{']: return |
158 |
names = [n for n in names if fnmatch.fnmatch(n, '*.test')] |
names = [n for n in names if fnmatch.fnmatch(n, '*.test')] |
159 |
names = [os.path.join(dirname, name) for name in names] |
names = [os.path.join(dirname, name) for name in names] |
160 |
list.extend(names) |
list.extend(names) |
165 |
os.path.walk(f, addTests, tests) |
os.path.walk(f, addTests, tests) |
166 |
else: |
else: |
167 |
tests.append(f) |
tests.append(f) |
168 |
|
print "Tests: ",tests |
169 |
return tests |
return tests |
170 |
|
|
171 |
|
|