##// END OF EJS Templates
tests: simplify handling of unknown test types
Matt Mackall -
r19241:a32986de default
parent child Browse files
Show More
@@ -849,15 +849,9 b' def runone(options, test):'
849 849 def ignore(msg):
850 850 result('i', (test, msg))
851 851
852 if (os.path.basename(test).startswith("test-") and '~' not in test and
853 ('.' not in test or test.endswith('.py') or
854 test.endswith('.bat') or test.endswith('.t'))):
855 852 if not os.path.exists(test):
856 853 skip("doesn't exist")
857 854 return None
858 else:
859 vlog('# Test file', test, 'not supported, ignoring')
860 return None # not a supported test, don't record
861 855
862 856 if not (options.whitelisted and test in options.whitelisted):
863 857 if options.blacklist and test in options.blacklist:
@@ -910,7 +904,7 b' def runone(options, test):'
910 904 lctest = test.lower()
911 905
912 906 for ext, func, out in testtypes:
913 if lctest.endswith(ext):
907 if lctest.startswith("test-") and lctest.endswith(ext):
914 908 runner = func
915 909 ref = os.path.join(TESTDIR, test + out)
916 910 break
General Comments 0
You need to be logged in to leave comments. Login now