aboutsummaryrefslogtreecommitdiff
path: root/crosperf/settings_factory.py
diff options
context:
space:
mode:
authorZhizhou Yang <zhizhouy@google.com>2019-07-16 16:23:02 -0700
committerZhizhou Yang <zhizhouy@google.com>2019-07-22 20:59:50 +0000
commit7aa250ecfc39d4ceca8ccc302f37261fc133bb45 (patch)
tree7bb6eead6b6fef097d041c23956b04097da20342 /crosperf/settings_factory.py
parentd6b61669352054206b4ed1e524a6487c78555143 (diff)
downloadtoolchain-utils-7aa250ecfc39d4ceca8ccc302f37261fc133bb45.tar.gz
crosperf: introduce skylab field and pass to experiment and label
This is the initial patch to migrate crosperf from autotest to skylab for lab runs. This patch introduces skylab field in experiment, parsed it in settings_factory and restructured label class and experiment class so that further steps can use skylab field. TEST=Passed all unit tests BUG=chromium:984790 Change-Id: I1104fea739977c522938790012f4f3f522f9d65f Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/third_party/toolchain-utils/+/1705234 Reviewed-by: Caroline Tice <cmtice@chromium.org> Tested-by: Zhizhou Yang <zhizhouy@google.com> Auto-Submit: Zhizhou Yang <zhizhouy@google.com> Legacy-Commit-Queue: Commit Bot <commit-bot@chromium.org>
Diffstat (limited to 'crosperf/settings_factory.py')
-rw-r--r--crosperf/settings_factory.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/crosperf/settings_factory.py b/crosperf/settings_factory.py
index 1b30e11c..a4607963 100644
--- a/crosperf/settings_factory.py
+++ b/crosperf/settings_factory.py
@@ -152,6 +152,11 @@ class GlobalSettings(Settings):
description='The target board for running '
'experiments on, e.g. x86-alex.'))
self.AddField(
+ BooleanField(
+ 'skylab',
+ description='Whether to run experiments via skylab.',
+ default=False))
+ self.AddField(
ListField(
'remote',
description='A comma-separated list of IPs of '