Commit ea970763 authored by Stefan Behnel's avatar Stefan Behnel

use relative file path in test runner output

parent 00c8bbf0
...@@ -1486,20 +1486,18 @@ class VersionDependencyExcluder: ...@@ -1486,20 +1486,18 @@ class VersionDependencyExcluder:
return True return True
return False return False
class FileListExcluder: class FileListExcluder:
def __init__(self, list_file, verbose=False): def __init__(self, list_file, verbose=False):
self.verbose = verbose self.verbose = verbose
self.excludes = {} self.excludes = {}
self._list_file = list_file self._list_file = os.path.relpath(list_file)
f = open(list_file) with open(list_file) as f:
try: for line in f:
for line in f.readlines():
line = line.strip() line = line.strip()
if line and line[0] != '#': if line and line[0] != '#':
self.excludes[line.split()[0]] = True self.excludes[line.split()[0]] = True
finally:
f.close()
def __call__(self, testname, tags=None): def __call__(self, testname, tags=None):
exclude = (testname in self.excludes exclude = (testname in self.excludes
...@@ -1509,6 +1507,7 @@ class FileListExcluder: ...@@ -1509,6 +1507,7 @@ class FileListExcluder:
% (testname, self._list_file)) % (testname, self._list_file))
return exclude return exclude
class TagsSelector: class TagsSelector:
def __init__(self, tag, value): def __init__(self, tag, value):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment