tests/run-tests.py
changeset 19527 534cdbe87cad
parent 19460 d876c82f25a3
child 19758 14c4f605f0fc
--- 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