diff options
author | Jordan R Abrahams <ajordanr@google.com> | 2021-10-07 03:27:51 +0000 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2021-10-11 07:29:49 +0000 |
commit | c5e12fbac037054444b2c07d708745c377d68328 (patch) | |
tree | da2ae5bcf4bc87c5dbe5c9bef60d4a3221f07df0 /crosperf/experiment_runner.py | |
parent | ec4d2aec19dc05d45eef5ea4925cbb72f2a2123f (diff) | |
download | toolchain-utils-c5e12fbac037054444b2c07d708745c377d68328.tar.gz |
Add 'no_lock' crosperf setting
This global experiment setting prevents crosperf from
attempting to lock the associated devices. This is important
if the devices were locked previously before by crosfleet.
BUG=b:187535367
TEST=CQ
TEST=Lease board from crosfleet. Forward SSH port. Run crosperf on
forwarded port.
Change-Id: I0f5341e07e325a613c6316778c0f096f6d8088a2
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/third_party/toolchain-utils/+/3210525
Reviewed-by: Manoj Gupta <manojgupta@chromium.org>
Tested-by: Jordan R Abrahams <ajordanr@google.com>
Commit-Queue: Jordan R Abrahams <ajordanr@google.com>
Diffstat (limited to 'crosperf/experiment_runner.py')
-rw-r--r-- | crosperf/experiment_runner.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crosperf/experiment_runner.py b/crosperf/experiment_runner.py index 49aff425..ca846154 100644 --- a/crosperf/experiment_runner.py +++ b/crosperf/experiment_runner.py @@ -176,7 +176,7 @@ class ExperimentRunner(object): # no-op task on the DUT and new test created will be hanging there. # TODO(zhizhouy): Need to check whether machine is ready or not before # assigning a test to it. - if not experiment.crosfleet: + if not experiment.no_lock and not experiment.crosfleet: self._LockAllMachines(experiment) # Calculate all checksums of avaiable/locked machines, to ensure same # label has same machines for testing |