[pypy-commit] pypy default: Check if base directory exists while collecting tests
bivab
noreply at buildbot.pypy.org
Sat Mar 30 19:09:19 CET 2013
Author: David Schneider <david.schneider at picle.org>
Branch:
Changeset: r62893:bc465cb0b6a7
Date: 2013-03-30 19:08 +0100
http://bitbucket.org/pypy/pypy/changeset/bc465cb0b6a7/
Log: Check if base directory exists while collecting tests
diff --git a/testrunner/runner.py b/testrunner/runner.py
--- a/testrunner/runner.py
+++ b/testrunner/runner.py
@@ -315,9 +315,12 @@
def collect_testdirs(self, testdirs, p=None):
if p is None:
p = self.root
-
+
reldir = self.reltoroot(p)
- entries = [p1 for p1 in p.listdir() if p1.check(dotfile=0)]
+ if p.check():
+ entries = [p1 for p1 in p.listdir() if p1.check(dotfile=0)]
+ else:
+ entries = []
entries.sort()
if p != self.root:
More information about the pypy-commit
mailing list