diff options
author | Yunlian Jiang <yunlian@google.com> | 2013-05-16 15:34:37 -0700 |
---|---|---|
committer | ChromeBot <chrome-bot@google.com> | 2013-05-16 17:52:13 -0700 |
commit | 0a89243bbbb904c84fd0c7acce2d71e1abb7471c (patch) | |
tree | 0159d190428344659b56028f7e5a2c10afaa7746 /crosperf | |
parent | 134905c3aa9858160601423457b0c3f1381b3227 (diff) | |
download | toolchain-utils-0a89243bbbb904c84fd0c7acce2d71e1abb7471c.tar.gz |
crosperf: reboot the machine before running benchmarks.
BUG=None
TEST=None
Change-Id: I15bcba679664ec7a3d0b9eaea845c9dc2c0d9189
Reviewed-on: https://gerrit-int.chromium.org/38080
Reviewed-by: Luis Lozano <llozano@chromium.org>
Commit-Queue: Yunlian Jiang <yunlian@google.com>
Tested-by: Yunlian Jiang <yunlian@google.com>
Diffstat (limited to 'crosperf')
-rw-r--r-- | crosperf/autotest_runner.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/crosperf/autotest_runner.py b/crosperf/autotest_runner.py index 5611b655..dc35a59f 100644 --- a/crosperf/autotest_runner.py +++ b/crosperf/autotest_runner.py @@ -24,6 +24,12 @@ class AutotestRunner(object): command = "rm -rf /usr/local/autotest/results/*" self._ce.CrosRunCommand(command, machine=machine_name, username="root", chromeos_root=chromeos_root) + + command ="reboot && exit" + self._ce.CrosRunCommand(command, machine=machine_name, + chromeos_root=chromeos_root) + time.sleep(60) + command = ("./run_remote_tests.sh --remote=%s %s %s" % (machine_name, options, autotest_name)) return self._ce.ChrootRunCommand(chromeos_root, command, True, self._ct) |