Mercurial > hg-stable
changeset 19241:a32986dea31a
tests: simplify handling of unknown test types
author | Matt Mackall <mpm@selenic.com> |
---|---|
date | Fri, 24 May 2013 13:34:22 -0500 |
parents | b4ecdc451130 |
children | d25fc3264d44 |
files | tests/run-tests.py |
diffstat | 1 files changed, 2 insertions(+), 8 deletions(-) [+] |
line wrap: on
line diff
--- a/tests/run-tests.py Fri May 24 13:31:44 2013 -0500 +++ b/tests/run-tests.py Fri May 24 13:34:22 2013 -0500 @@ -849,15 +849,9 @@ def ignore(msg): result('i', (test, msg)) - if (os.path.basename(test).startswith("test-") and '~' not in test and - ('.' not in test or test.endswith('.py') or - test.endswith('.bat') or test.endswith('.t'))): - if not os.path.exists(test): + if not os.path.exists(test): skip("doesn't exist") return None - else: - vlog('# Test file', test, 'not supported, ignoring') - return None # not a supported test, don't record if not (options.whitelisted and test in options.whitelisted): if options.blacklist and test in options.blacklist: @@ -910,7 +904,7 @@ lctest = test.lower() for ext, func, out in testtypes: - if lctest.endswith(ext): + if lctest.startswith("test-") and lctest.endswith(ext): runner = func ref = os.path.join(TESTDIR, test + out) break