diff options
author | anatoly techtonik <techtonik@gmail.com> | 2014-03-24 14:32:36 +0300 |
---|---|---|
committer | anatoly techtonik <techtonik@gmail.com> | 2014-03-24 14:32:36 +0300 |
commit | ab158c203947e8f989b5d070a079346be6c80f1c (patch) | |
tree | a780328d3f05a95775d42c3f849d01c05565df73 | |
parent | dd0a875b1a0dca731450e56a6f38dc616664522c (diff) | |
download | scons-ab158c203947e8f989b5d070a079346be6c80f1c.tar.gz |
Fix running tests in subdir as argument to runtest.py, e.g.
python runtest.py test/CC
-rwxr-xr-x | runtest.py | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -706,10 +706,10 @@ else: for tp in testpaths: for path in glob.glob(tp): if os.path.isdir(path): - if path.endswith('src'): + if path.startswith('src'): for p in find_Tests_py(path): unittests.append(p) - elif path.endswith('test'): + elif path.startswith('test'): for p in find_py(path): endtests.append(p) else: |