# HG changeset patch # User Matt Mackall # Date 1369420462 18000 # Node ID e9255604114012b2f0c42c16f24bb543a15afd64 # Parent db145eefc724f322f1dab7905e733cd674a75574 tests: simplify handling of unknown test types [ original upstream message ] diff -r db145eefc724 -r e92556041140 tests/run-tests.py --- 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