summaryrefslogtreecommitdiffstats
path: root/runtest.py
diff options
context:
space:
mode:
authoranatoly techtonik <techtonik@gmail.com>2014-03-24 11:32:36 (GMT)
committeranatoly techtonik <techtonik@gmail.com>2014-03-24 11:32:36 (GMT)
commit90eac7bd6ea714a4b795f2ab8f63ce556e7f0a35 (patch)
treea780328d3f05a95775d42c3f849d01c05565df73 /runtest.py
parentb9202b5cc9cc251ffae2cb6eadf5ad664807b553 (diff)
downloadSCons-90eac7bd6ea714a4b795f2ab8f63ce556e7f0a35.zip
SCons-90eac7bd6ea714a4b795f2ab8f63ce556e7f0a35.tar.gz
SCons-90eac7bd6ea714a4b795f2ab8f63ce556e7f0a35.tar.bz2
Fix running tests in subdir as argument to runtest.py, e.g.
python runtest.py test/CC
Diffstat (limited to 'runtest.py')
-rwxr-xr-xruntest.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/runtest.py b/runtest.py
index f9a99dd..b7cbdc6 100755
--- a/runtest.py
+++ b/runtest.py
@@ -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: