Commit e8f54463 authored by Caleb Rouleau's avatar Caleb Rouleau Committed by Commit Bot

[Telemetry] Always set return code.

This fixes the exception:

  File "/b/s/w/ir/testing/scripts/run_telemetry_benchmark_as_googletest.py", line 176, in run_benchmark
    if rc == 0:
UnboundLocalError: local variable 'rc' referenced before assignment

TBR=nednguyen

Bug: 891332
Change-Id: I81b8502f8f95bf8db070d8ccc062a343b062e880
Reviewed-on: https://chromium-review.googlesource.com/c/1258978
Commit-Queue: Caleb Rouleau <crouleau@chromium.org>
Commit-Queue: Ned Nguyen <nednguyen@google.com>
Reviewed-by: default avatarNed Nguyen <nednguyen@google.com>
Reviewed-by: default avatarJohn Chen <johnchen@chromium.org>
Cr-Commit-Position: refs/heads/master@{#596316}
parent f688b327
......@@ -126,6 +126,7 @@ def run_benchmark(args, rest_args, histogram_results):
cmd_args = cmd_args + [
'--story-filter=' + filter_regex
]
rc = 1 # Set default returncode in case there is an exception.
try:
cmd = [sys.executable] + cmd_args + [
'--output-dir', tempfile_dir,
......
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