Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(220)

Unified Diff: tools/telemetry/telemetry/page/results_options.py

Issue 26179009: [telemetry] Restore --reset-html-results option and rename to --reset-results (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Overwrote pagerunnertest fix with last patch. Created 7 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « tools/telemetry/telemetry/page/page_runner_unittest.py ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/telemetry/telemetry/page/results_options.py
diff --git a/tools/telemetry/telemetry/page/results_options.py b/tools/telemetry/telemetry/page/results_options.py
index 4d8471f141ebb5ec14b977d31c1f63c95b77ff8f..dde90167e3f9c25307538ef4f51fcdc7cf23feff 100644
--- a/tools/telemetry/telemetry/page/results_options.py
+++ b/tools/telemetry/telemetry/page/results_options.py
@@ -33,6 +33,8 @@ def AddResultsOptions(parser):
group.add_option('--output-trace-tag',
default='',
help='Append a tag to the key of each result trace.')
+ group.add_option('--reset-results', action='store_true',
+ help='Delete all stored results.')
parser.add_option_group(group)
@@ -73,8 +75,8 @@ def PrepareResults(test, options):
return gtest_test_results.GTestTestResults(output_stream)
elif options.output_format == 'html':
return html_page_measurement_results.HtmlPageMeasurementResults(
- output_stream, test.__class__.__name__, options.browser_type,
- trace_tag=options.output_trace_tag)
+ output_stream, test.__class__.__name__, options.reset_results,
+ options.browser_type, trace_tag=options.output_trace_tag)
else:
# Should never be reached. The parser enforces the choices.
raise Exception('Invalid --output-format "%s". Valid choices are: %s'
« no previous file with comments | « tools/telemetry/telemetry/page/page_runner_unittest.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698