aboutsummaryrefslogtreecommitdiff
path: root/crosperf/settings_factory.py
diff options
context:
space:
mode:
authorAhmad Sharif <asharif@chromium.org>2012-12-20 12:09:49 -0800
committerAhmad Sharif <asharif@chromium.org>2012-12-20 12:09:49 -0800
commit4467f004e7f0854963bec90daff1879fbd9d2fec (patch)
treeaac36caa6279aa532e2d6234e50ee812f2db0c8d /crosperf/settings_factory.py
parentf395c26437cbdabc2960447fba89b226f4409e82 (diff)
downloadtoolchain-utils-4467f004e7f0854963bec90daff1879fbd9d2fec.tar.gz
Synced repos to: 64740
Diffstat (limited to 'crosperf/settings_factory.py')
-rw-r--r--crosperf/settings_factory.py21
1 files changed, 16 insertions, 5 deletions
diff --git a/crosperf/settings_factory.py b/crosperf/settings_factory.py
index 782f0dd3..11fa4b4b 100644
--- a/crosperf/settings_factory.py
+++ b/crosperf/settings_factory.py
@@ -1,9 +1,9 @@
#!/usr/bin/python
# Copyright 2011 Google Inc. All Rights Reserved.
+"""Setting files for global, benchmark and labels."""
from field import BooleanField
-from field import EnumField
from field import FloatField
from field import IntegerField
from field import ListField
@@ -46,6 +46,13 @@ class LabelSettings(Settings):
"chromeos_image."))
self.AddField(TextField("board", required=True, description="The target "
"board for running experiments on, e.g. x86-alex."))
+ self.AddField(ListField("remote", description=
+ "A comma-separated list of ip's of chromeos"
+ "devices to run experiments on."))
+ self.AddField(TextField("image_args", required=False,
+ default="",
+ description="Extra arguments to pass to "
+ "image_chromeos.py."))
class GlobalSettings(Settings):
@@ -56,20 +63,24 @@ class GlobalSettings(Settings):
"identifier."))
self.AddField(TextField("board", description="The target "
"board for running experiments on, e.g. x86-alex."))
- self.AddField(ListField("remote", required=True,
+ self.AddField(ListField("remote",
description="A comma-separated list of ip's of "
"chromeos devices to run experiments on."))
self.AddField(BooleanField("rerun_if_failed", description="Whether to "
"re-run failed autotest runs or not.",
default=False))
self.AddField(ListField("email", description="Space-seperated"
- "list of email addresses to send email to."))
+ "list of email addresses to send email to."))
self.AddField(BooleanField("rerun", description="Whether to ignore the "
"cache and for autotests to be re-run.",
default=False))
- self.AddField(BooleanField("exact_remote", default=True,
+ self.AddField(BooleanField("same_specs", default=True,
description="Ensure cached runs are run on the "
- "same device that is specified as a remote."))
+ "same kind of devices which are specified as a "
+ "remote."))
+ self.AddField(BooleanField("same_machine", default=False,
+ description="Ensure cached runs are run on the "
+ "exact the same remote"))
self.AddField(IntegerField("iterations", default=1,
description="Number of iterations to run all "
"autotests."))