##// END OF EJS Templates
run-tests: check for test file existence in Test.run()...
Gregory Szorc -
r21328:9da0761a default
parent child Browse files
Show More
@@ -582,6 +582,10 b' class Test(object):'
582 582 shutil.rmtree(self._threadtmp, True)
583 583
584 584 def run(self, result):
585 if not os.path.exists(self._path):
586 result.skipped = True
587 return self.skip("Doesn't exist")
588
585 589 # Remove any previous output files.
586 590 if os.path.exists(self._errpath):
587 591 os.remove(self._errpath)
@@ -1112,9 +1116,6 b' def runone(options, test, count):'
1112 1116 err = os.path.join(TESTDIR, test + ".err")
1113 1117 lctest = test.lower()
1114 1118
1115 if not os.path.exists(testpath):
1116 return skip("doesn't exist")
1117
1118 1119 if not (options.whitelisted and test in options.whitelisted):
1119 1120 if options.blacklist and test in options.blacklist:
1120 1121 return skip("blacklisted")
General Comments 0
You need to be logged in to leave comments. Login now