Bug 1057453 - 'mach test filename' should test a single file. r=gps

This commit is contained in:
Tomasz Kołodziejski 2014-09-03 13:06:00 +02:00
Родитель 8b8bcbdcc3
Коммит 41c67f83a4
1 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -219,9 +219,9 @@ class MochitestRunner(MozbuildObject):
print('Cannot specify both --rerun-failures and a test path.')
return 1
# Need to call relpath before os.chdir() below.
# Make absolute paths relative before calling os.chdir() below.
if test_paths:
test_paths = [self._wrap_path_argument(p).relpath() for p in test_paths]
test_paths = [self._wrap_path_argument(p).relpath() if os.path.isabs(p) else p for p in test_paths]
failure_file_path = os.path.join(self.statedir, 'mochitest_failures.json')