Bug 1403565 - Improve test-verify behavior when reftest reference file is modified; r=jmaher

This commit is contained in:
Geoff Brown 2017-09-27 13:15:35 -06:00
Родитель c6587123d7
Коммит 68ec0079db
1 изменённых файлов: 12 добавлений и 2 удалений

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

@ -147,8 +147,18 @@ class VerifyToolsMixin(object):
for file in files:
if suite in ['reftest', 'crashtest']:
file = os.path.join(self.reftest_test_dir, file)
args.append(['--verify-max-time=%d' % MAX_TIME_PER_TEST, '--verify', file])
self.info("Verification file for '%s': %s" % (suite, files))
if suite == 'reftest':
# Special handling for modified reftest reference files:
# - if both test and reference modified, verify the test file
# - if only reference modified, verify the test file
nonref = file.replace('-ref.', '.')
if nonref != file:
file = None
if nonref not in files and os.path.exists(nonref):
file = nonref
if file:
args.append(['--verify-max-time=%d' % MAX_TIME_PER_TEST, '--verify', file])
self.info("Verification file(s) for '%s': %s" % (suite, files))
return args
def query_verify_category_suites(self, category, all_suites):