Commit 7b355d14 authored by Ned Nguyen's avatar Ned Nguyen Committed by Commit Bot

Make benchmark_enabled_map key look-up returns False if key not found

NOTRY=true  # this does not have unittest
TBR=eyaich@chromium.org

Bug: 859251
Change-Id: Ic3da603cb16b5d41ecc2368ff7492735ec26e147
Reviewed-on: https://chromium-review.googlesource.com/1121519Reviewed-by: default avatarNed Nguyen <nednguyen@google.com>
Commit-Queue: Ned Nguyen <nednguyen@google.com>
Cr-Commit-Position: refs/heads/master@{#571729}
parent f5f6bf57
...@@ -344,7 +344,7 @@ def _handle_perf_results( ...@@ -344,7 +344,7 @@ def _handle_perf_results(
upload_failure = False upload_failure = False
with oauth_api.with_access_token(service_account_file) as oauth_file: with oauth_api.with_access_token(service_account_file) as oauth_file:
for benchmark_name, directories in benchmark_directory_map.iteritems(): for benchmark_name, directories in benchmark_directory_map.iteritems():
if not benchmark_enabled_map[benchmark_name]: if not benchmark_enabled_map.get(benchmark_name, False):
continue continue
upload_begin_time = time.time() upload_begin_time = time.time()
# There are potentially multiple directores with results, re-write and # There are potentially multiple directores with results, re-write and
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment