equal
deleted
inserted
replaced
847 result('p', test) |
847 result('p', test) |
848 |
848 |
849 def ignore(msg): |
849 def ignore(msg): |
850 result('i', (test, msg)) |
850 result('i', (test, msg)) |
851 |
851 |
852 if (os.path.basename(test).startswith("test-") and '~' not in test and |
852 if not os.path.exists(test): |
853 ('.' not in test or test.endswith('.py') or |
|
854 test.endswith('.bat') or test.endswith('.t'))): |
|
855 if not os.path.exists(test): |
|
856 skip("doesn't exist") |
853 skip("doesn't exist") |
857 return None |
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 if not (options.whitelisted and test in options.whitelisted): |
856 if not (options.whitelisted and test in options.whitelisted): |
863 if options.blacklist and test in options.blacklist: |
857 if options.blacklist and test in options.blacklist: |
864 skip("blacklisted") |
858 skip("blacklisted") |
865 return None |
859 return None |
908 if os.path.exists(err): |
902 if os.path.exists(err): |
909 os.remove(err) # Remove any previous output files |
903 os.remove(err) # Remove any previous output files |
910 lctest = test.lower() |
904 lctest = test.lower() |
911 |
905 |
912 for ext, func, out in testtypes: |
906 for ext, func, out in testtypes: |
913 if lctest.endswith(ext): |
907 if lctest.startswith("test-") and lctest.endswith(ext): |
914 runner = func |
908 runner = func |
915 ref = os.path.join(TESTDIR, test + out) |
909 ref = os.path.join(TESTDIR, test + out) |
916 break |
910 break |
917 else: |
911 else: |
918 return skip("unknown test type") |
912 return skip("unknown test type") |