# HG changeset patch # User Matt Mackall # Date 1369420462 18000 # Node ID a32986dea31a4b3cc866eee026dee1633a380080 # Parent b4ecdc45113075296f1d309721d7b09eb5ecd2e2 tests: simplify handling of unknown test types diff -r b4ecdc451130 -r a32986dea31a 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