run-tests: only check the common criteria once per test
[ original upstream message ]
--- 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