diff tests/run-tests.py @ 19527:534cdbe87cad

run-tests: only check the common criteria once per test
author Simon Heimberg <simohe@besonet.ch>
date Fri, 26 Jul 2013 21:18:40 -0400
parents d876c82f25a3
children 14c4f605f0fc
line wrap: on
line diff
--- a/tests/run-tests.py	Thu Aug 01 22:52:05 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