Comments
Patch
@@ -575,16 +575,20 @@ class Test(object):
def __del__(self):
for entry in self._daemonpids:
killdaemons(entry)
if self._threadtmp and not self._options.keep_tmpdir:
shutil.rmtree(self._threadtmp, True)
def run(self, result):
+ if not os.path.exists(self._path):
+ result.skipped = True
+ return self.skip("Doesn't exist")
+
# Remove any previous output files.
if os.path.exists(self._errpath):
os.remove(self._errpath)
testtmp = os.path.join(self._threadtmp, os.path.basename(self._path))
os.mkdir(testtmp)
replacements, port = self._getreplacements(testtmp)
env = self._getenv(testtmp, port)
@@ -1105,19 +1109,16 @@ def runone(options, test, count):
def ignore(msg):
return 'i', test, msg
testpath = os.path.join(TESTDIR, test)
err = os.path.join(TESTDIR, test + ".err")
lctest = test.lower()
- if not os.path.exists(testpath):
- return skip("doesn't exist")
-
if not (options.whitelisted and test in options.whitelisted):
if options.blacklist and test in options.blacklist:
return skip("blacklisted")
if options.retest and not os.path.exists(test + ".err"):
return ignore("not retesting")
if options.keywords: