diff options
author | Zhizhou Yang <zhizhouy@google.com> | 2018-12-05 10:13:05 -0800 |
---|---|---|
committer | chrome-bot <chrome-bot@chromium.org> | 2018-12-06 05:54:39 -0800 |
commit | 6535cc843c4860246fb455d147b1b282e2b72c87 (patch) | |
tree | 1c193fb0d283eb0fe71f1d1a8157ba69b3f27387 /crosperf/experiment_factory.py | |
parent | 5cc59a85d1557f9fb420f6a718c201e6c62c2a53 (diff) | |
download | toolchain-utils-6535cc843c4860246fb455d147b1b282e2b72c87.tar.gz |
crosperf: make cwp_dso only work for run_local=False
We do not want to run cwp_dso experiment with run_local to be True.
Note that run_local is set to True by default.
BUG=chromium:902785
TEST=Passed all unit tests
Change-Id: I11688f34b3c96ac91d3a75ec645bdb5430bef69e
Reviewed-on: https://chromium-review.googlesource.com/1363472
Commit-Ready: Zhizhou Yang <zhizhouy@google.com>
Tested-by: Zhizhou Yang <zhizhouy@google.com>
Reviewed-by: Caroline Tice <cmtice@chromium.org>
Diffstat (limited to 'crosperf/experiment_factory.py')
-rw-r--r-- | crosperf/experiment_factory.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/crosperf/experiment_factory.py b/crosperf/experiment_factory.py index aa0e4cf0..20e0fdba 100644 --- a/crosperf/experiment_factory.py +++ b/crosperf/experiment_factory.py @@ -202,6 +202,9 @@ class ExperimentFactory(object): if suite != 'telemetry_Crosperf': raise RuntimeError('CWP approximation weight only works with ' 'telemetry_Crosperf suite') + if run_local: + raise RuntimeError('run_local must be set to False to use CWP ' + 'approximation') if weight > 1 or weight < 0: raise RuntimeError('Weight should be a float between 0 and 1') elif cwp_dso: |