aboutsummaryrefslogtreecommitdiff
path: root/crosperf/settings_factory.py
diff options
context:
space:
mode:
authorZhizhou Yang <zhizhouy@google.com>2017-07-22 01:03:02 +0000
committerandroid-build-merger <android-build-merger@google.com>2017-07-22 01:03:02 +0000
commit6c551e0d526de7de9d86516614d645cba6f975a6 (patch)
treebf139ee25415cecde142e95791edba3803b2452a /crosperf/settings_factory.py
parent3690e025de8daaed03c4acb02d2b054e5c4c0dd5 (diff)
parent18caef1edd870ff3850fe2c417bbcec00c2ba7e0 (diff)
downloadtoolchain-utils-6c551e0d526de7de9d86516614d645cba6f975a6.tar.gz
Merge branch 'aosp/mirror-chromium-master' into update_utils am: 4307f4735e
am: 18caef1edd Change-Id: Ic12e19d78d60a8e444592bfa8783e234456c0051
Diffstat (limited to 'crosperf/settings_factory.py')
-rw-r--r--crosperf/settings_factory.py23
1 files changed, 13 insertions, 10 deletions
diff --git a/crosperf/settings_factory.py b/crosperf/settings_factory.py
index e42d82a9..efbb534f 100644
--- a/crosperf/settings_factory.py
+++ b/crosperf/settings_factory.py
@@ -29,9 +29,11 @@ class BenchmarkSettings(Settings):
self.AddField(
IntegerField(
'iterations',
- default=1,
- description='Number of iterations to run the '
- 'test.'))
+ required=False,
+ default=0,
+ description='Number of iterations to run the test. '
+ 'If not set, will run each benchmark test the optimum number of '
+ 'times to get a stable result.'))
self.AddField(
TextField(
'suite', default='', description='The type of the benchmark.'))
@@ -68,8 +70,8 @@ class LabelSettings(Settings):
'autotest_path',
required=False,
description='Autotest directory path relative to chroot which '
- 'has autotest files for the image to run tests requiring autotest files'
- ))
+ 'has autotest files for the image to run tests requiring autotest '
+ 'files.'))
self.AddField(
TextField(
'chromeos_root',
@@ -186,9 +188,11 @@ class GlobalSettings(Settings):
self.AddField(
IntegerField(
'iterations',
- default=1,
- description='Number of iterations to run all '
- 'tests.'))
+ required=False,
+ default=0,
+ description='Number of iterations to run all tests. '
+ 'If not set, will run each benchmark test the optimum number of '
+ 'times to get a stable result.'))
self.AddField(
TextField(
'chromeos_root',
@@ -256,8 +260,7 @@ class GlobalSettings(Settings):
'you want to use. It accepts multiple directories '
'separated by a ",".'))
self.AddField(
- TextField(
- 'results_dir', default='', description='The results dir.'))
+ TextField('results_dir', default='', description='The results dir.'))
self.AddField(
TextField(
'locks_dir',