run-tests: only check the common criteria once per test stable
authorSimon Heimberg <simohe@besonet.ch>
Fri, 26 Jul 2013 21:18:40 -0400
branchstable
changeset 1290 d56f50372ba5
parent 1289 0b972f189962
child 1291 451cbdc0b353
child 1292 aa3c5b7a290e
run-tests: only check the common criteria once per test [ original upstream message ]
tests/run-tests.py
--- a/tests/run-tests.py	Thu Jul 18 23:22:59 2013 -0500
+++ b/tests/run-tests.py	Fri Jul 26 21:18:40 2013 -0400
@@ -921,8 +921,10 @@
                 else:
                     return ignore("doesn't match keyword")
 
+    if not lctest.startswith("test-"):
+        return skip("not a test file")
     for ext, func, out in testtypes:
-        if lctest.startswith("test-") and lctest.endswith(ext):
+        if lctest.endswith(ext):
             runner = func
             ref = os.path.join(TESTDIR, test + out)
             break