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

Unified Diff: tools/telemetry/telemetry/core/browser_options.py

Issue 22325006: Revert "Revert 215542 "[Telemetry] Add HTML output and make it the default."" (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 4 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/support/html_output/results-template.html ('k') | tools/telemetry/telemetry/core/util.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/telemetry/telemetry/core/browser_options.py
diff --git a/tools/telemetry/telemetry/core/browser_options.py b/tools/telemetry/telemetry/core/browser_options.py
index 983d14636ce5460296d7ba2851de39564e736fc3..2daf439ccb08dc69032457c3bb65268e7bcb52fd 100644
--- a/tools/telemetry/telemetry/core/browser_options.py
+++ b/tools/telemetry/telemetry/core/browser_options.py
@@ -52,6 +52,7 @@ class BrowserOptions(optparse.Values):
self.no_proxy_server = False
self.repeat_options = repeat_options.RepeatOptions()
+ self.output_file = None
def Copy(self):
return copy.deepcopy(self)
@@ -205,6 +206,10 @@ class BrowserOptions(optparse.Values):
if self.profile_type == 'default':
self.dont_override_profile = True
+ if ((hasattr(self, 'output_format') and self.output_format == 'html') and
+ (not hasattr(self, 'output_file') or not self.output_file)):
+ self.output_file = os.path.join(util.GetBaseDir(), 'results.html')
+
# Parse repeat options
self.repeat_options.UpdateFromParseResults(self, parser)
« no previous file with comments | « tools/telemetry/support/html_output/results-template.html ('k') | tools/telemetry/telemetry/core/util.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698