Continue if exclude-dir doesn't exist, just log warning.
This commit is contained in:
parent
de9264c323
commit
2c17f9e911
|
@ -34,7 +34,7 @@ class NoseExclude(Plugin):
|
||||||
if os.path.exists(abspath):
|
if os.path.exists(abspath):
|
||||||
return abspath
|
return abspath
|
||||||
else:
|
else:
|
||||||
raise ValueError("invalid path: %s" % pathname)
|
log.warn('The following path was not found: %s' % pathname)
|
||||||
|
|
||||||
def _load_from_file(self, filename):
|
def _load_from_file(self, filename):
|
||||||
infile = open(filename)
|
infile = open(filename)
|
||||||
|
@ -72,7 +72,8 @@ class NoseExclude(Plugin):
|
||||||
for d in exclude_param.split('\n'):
|
for d in exclude_param.split('\n'):
|
||||||
d = d.strip()
|
d = d.strip()
|
||||||
abs_d = self._force_to_abspath(d)
|
abs_d = self._force_to_abspath(d)
|
||||||
self.exclude_dirs[abs_d] = True
|
if abs_d:
|
||||||
|
self.exclude_dirs[abs_d] = True
|
||||||
|
|
||||||
exclude_str = "excluding dirs: %s" % ",".join(self.exclude_dirs.keys())
|
exclude_str = "excluding dirs: %s" % ",".join(self.exclude_dirs.keys())
|
||||||
log.debug(exclude_str)
|
log.debug(exclude_str)
|
||||||
|
|
Loading…
Reference in New Issue