Bug 1831662 - Don't set PERF_BASE_REVISION if it's None. r=perftest-reviewers,afinder

Differential Revision: https://phabricator.services.mozilla.com/D177315
This commit is contained in:
Greg Mierzwinski 2023-05-08 16:42:46 +00:00
Родитель 0fb5cf65da
Коммит 84f44c61fd
1 изменённых файлов: 4 добавлений и 3 удалений

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

@ -970,9 +970,10 @@ class PerfParser(CompareParser):
# Reset updated since we no longer need to worry
# about failing while we're on a base commit
updated = False
try_config.setdefault("env", {})[
"PERF_BASE_REVISION"
] = base_revision_treeherder
if base_revision_treeherder is not None:
try_config.setdefault("env", {})[
"PERF_BASE_REVISION"
] = base_revision_treeherder
vcs.update(current_revision_ref)
with redirect_stdout(log_processor):