Bug 1666565 - Carry suite value for shouldAlert when there is only one subtest r=perftest-reviewers,sparky

Differential Revision: https://phabricator.services.mozilla.com/D91038
This commit is contained in:
Dave Hunt 2020-09-23 13:20:45 +00:00
Родитель cb0f9ac463
Коммит 9fcc66b6c6
1 изменённых файлов: 4 добавлений и 1 удалений

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

@ -130,8 +130,11 @@ class Output(object):
if test.test_config.get('unit'): if test.test_config.get('unit'):
subtest['unit'] = test.test_config['unit'] subtest['unit'] = test.test_config['unit']
# if there is only one subtest, carry alerting setting from the suite
if len(subtests) == 1:
subtests[0]['shouldAlert'] = suite['shouldAlert']
# if there is more than one subtest, calculate a summary result # if there is more than one subtest, calculate a summary result
if len(subtests) > 1: elif len(subtests) > 1:
suite['value'] = self.construct_results( suite['value'] = self.construct_results(
vals, testname=test.name()) vals, testname=test.name())
if test.test_config.get('lower_is_better') is not None: if test.test_config.get('lower_is_better') is not None: