71 |
# FIXME: It should be possible to run runtests.py even when not in |
# FIXME: It should be possible to run runtests.py even when not in |
72 |
# the test directory |
# the test directory |
73 |
files = os.listdir(os.curdir) |
files = os.listdir(os.curdir) |
74 |
names = [] |
if args: |
75 |
for file in files: |
names = args |
76 |
if file[:4] == "test" and file[-3:] == ".py": |
else: |
77 |
names.append(file[:-3]) |
names = [] |
78 |
|
for file in files: |
79 |
|
if file[:4] == "test" and file[-3:] == ".py": |
80 |
|
names.append(file[:-3]) |
81 |
|
|
82 |
suite = unittest.defaultTestLoader.loadTestsFromNames(names) |
suite = unittest.defaultTestLoader.loadTestsFromNames(names) |
83 |
runner = support.ThubanTestRunner(verbosity = verbosity) |
runner = support.ThubanTestRunner(verbosity = verbosity) |