Commit c81f0c98 authored by dtu's avatar dtu Committed by Commit bot

[telemetry] Only run reference builds on desktop.

Maintain a whitelist of which browsers it makes sense to compare with --browser=reference (doesn't include system)

BUG=416705
TEST=None.
TBR=tonyg
NOTRY=True

Review URL: https://codereview.chromium.org/601713002

Cr-Commit-Position: refs/heads/master@{#296373}
parent bdfadb83
...@@ -89,8 +89,12 @@ class List(command_line.OptparseCommand): ...@@ -89,8 +89,12 @@ class List(command_line.OptparseCommand):
def Run(self, args): def Run(self, args):
if args.json_output_file: if args.json_output_file:
possible_browser = browser_finder.FindBrowser(args) possible_browser = browser_finder.FindBrowser(args)
args.browser_type = 'reference' if args.browser_type in (
possible_reference_browser = browser_finder.FindBrowser(args) 'exact', 'release', 'release_x64', 'debug', 'debug_x64', 'canary'):
args.browser_type = 'reference'
possible_reference_browser = browser_finder.FindBrowser(args)
else:
possible_reference_browser = None
with open(args.json_output_file, 'w') as f: with open(args.json_output_file, 'w') as f:
f.write(_GetJsonTestList(possible_browser, possible_reference_browser, f.write(_GetJsonTestList(possible_browser, possible_reference_browser,
args.tests, args.num_shards)) args.tests, args.num_shards))
......
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