Mercurial > hg
changeset 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 | a58251c0568f |
children | f4a0f6dd95a3 |
files | tests/run-tests.py |
diffstat | 1 files changed, 3 insertions(+), 1 deletions(-) [+] |
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