diff options
author | Keun Soo Yim <yim@google.com> | 2016-12-12 14:44:53 -0800 |
---|---|---|
committer | Keun Soo Yim <yim@google.com> | 2016-12-16 22:57:11 +0000 |
commit | 502098cb04fa64fc354a7fffac506688b84e7ac3 (patch) | |
tree | 9e8f7b8ff83a9847abcc34b64da84f619ff9cc8d /hwbinder_benchmark | |
parent | 58022bc0f68b44c4f5c32e00a54c17587fd6bd47 (diff) | |
download | performance-502098cb04fa64fc354a7fffac506688b84e7ac3.tar.gz |
stop/start the framework before/after running (hw)binder performance tests
Test: vts-tradefed; run vts-hal-hidl
Bug: 33379541
Change-Id: Id9967f4ca442711b3353500224dcc6b1aad3881c
Diffstat (limited to 'hwbinder_benchmark')
-rw-r--r-- | hwbinder_benchmark/HwBinderPerformanceTest.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/hwbinder_benchmark/HwBinderPerformanceTest.py b/hwbinder_benchmark/HwBinderPerformanceTest.py index 3ba04fc..23723a1 100644 --- a/hwbinder_benchmark/HwBinderPerformanceTest.py +++ b/hwbinder_benchmark/HwBinderPerformanceTest.py @@ -16,6 +16,7 @@ # import logging +import time from vts.runners.host import asserts from vts.runners.host import base_test_with_webdb @@ -71,10 +72,14 @@ class HwBinderPerformanceTest(base_test_with_webdb.BaseTestWithWebDbClass): self.getUserParams(required_params) self.dut = self.registerController(android_device)[0] self.dut.shell.InvokeTerminal("one") + self.dut.shell.one.Execute("stop") + self.dut.shell.one.Execute("setprop sys.boot_completed 0") self.DisableCpuScaling() def tearDownClass(self): self.EnableCpuScaling() + self.dut.shell.one.Execute("start") + self.waitForBootCompletion() def ChangeCpuGoverner(self, mode): """Changes the cpu governer mode of all the cpus on the device. |