Commits

anatoly techtonik committed 90c9196

Fix running tests in subdir as argument to runtest.py, e.g.

python runtest.py test/CC

Comments (0)

Files changed (1)

     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: