aboutsummaryrefslogtreecommitdiff
path: root/crosperf/settings_factory.py
diff options
context:
space:
mode:
authorCaroline Tice <cmtice@google.com>2015-08-25 12:53:38 -0700
committerChromeOS Commit Bot <chromeos-commit-bot@chromium.org>2015-08-26 02:10:56 +0000
commitef4ca8a8cfe05ec09447896db42fb220d07834f8 (patch)
tree9cee7390eab577bc8fd11b7a36bb87f886af5ec1 /crosperf/settings_factory.py
parentbb04def1e86a0949a1b1898e705e56c84c400dd9 (diff)
downloadtoolchain-utils-ef4ca8a8cfe05ec09447896db42fb220d07834f8.tar.gz
Add json report archiving.
This CL adds a new output, in json format, for archiving test results. It also adds a new flag, --json_report, to crosperf to tell it to generate the json output file in the usual results directory. The json output is always in addition to the other reports that Crosperf generates. This CL also make some minor changes to the tool that maintains the telemetry default results file, so it can be used by the json report generator. BUG=None TEST=Tested Crosperf with & without new flag; it did what it should. Change-Id: Id0e476716ceee208d33e6f9427ea95235fbf11d4 Reviewed-on: https://chrome-internal-review.googlesource.com/228325 Reviewed-by: Han Shen <shenhan@google.com> Commit-Queue: Caroline Tice <cmtice@google.com> Tested-by: Caroline Tice <cmtice@google.com>
Diffstat (limited to 'crosperf/settings_factory.py')
-rw-r--r--crosperf/settings_factory.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/crosperf/settings_factory.py b/crosperf/settings_factory.py
index bf15719a..22849ba9 100644
--- a/crosperf/settings_factory.py
+++ b/crosperf/settings_factory.py
@@ -135,6 +135,9 @@ class GlobalSettings(Settings):
self.AddField(BooleanField("no_email", default=False,
description="Whether to disable the email to "
"user after crosperf finishes."))
+ self.AddField(BooleanField("json_report", default=False,
+ description="Whether to generate a json version"
+ " of the report, for archiving."))
self.AddField(BooleanField("show_all_results", default=False,
description="When running Telemetry tests, "
"whether to all the results, instead of just "