From 90eac7bd6ea714a4b795f2ab8f63ce556e7f0a35 Mon Sep 17 00:00:00 2001 From: anatoly techtonik Date: Mon, 24 Mar 2014 14:32:36 +0300 Subject: Fix running tests in subdir as argument to runtest.py, e.g. python runtest.py test/CC --- runtest.py | 4 ++-- 1 file 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: -- cgit v0.12