Bug 1507635 - When running specific tests on try, don't use the 'tests' attribute from the suite. r=ahal

--HG--
extra : rebase_source : b16fb8b5c158a9dd3fd03e3b5cfd278a52efc418
This commit is contained in:
Marco Castelluccio 2018-11-19 15:32:09 +01:00
Родитель 04b5e02692
Коммит cefdd7f8d4
1 изменённых файлов: 3 добавлений и 1 удалений

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

@ -795,7 +795,9 @@ class DesktopUnittest(TestingMixin, MercurialScript, MozbaseMixin,
}
if isinstance(suites[suite], dict):
options_list = suites[suite].get('options', [])
if self.verify_enabled or self.per_test_coverage:
if (self.verify_enabled or self.per_test_coverage or
os.environ.get('MOZHARNESS_TEST_PATHS')):
# Ignore tests list in modes where we are running specific tests.
tests_list = []
else:
tests_list = suites[suite].get('tests', [])