From df772c31fbca3ee58c3cfde539b751086a20a323 Mon Sep 17 00:00:00 2001 From: "frankf@chromium.org" Date: Tue, 19 Nov 2013 01:01:47 +0000 Subject: [Android] Guard perf_control creation in gtest test_runner. BUG=None TBR=skyostil@chromium.org Review URL: https://codereview.chromium.org/63403006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@235862 0039d316-1c4b-4281-b951-d872f2087c98 --- build/android/pylib/gtest/test_runner.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/build/android/pylib/gtest/test_runner.py b/build/android/pylib/gtest/test_runner.py index c47bf66..e4f98ff 100644 --- a/build/android/pylib/gtest/test_runner.py +++ b/build/android/pylib/gtest/test_runner.py @@ -52,7 +52,8 @@ class TestRunner(base_test_runner.BaseTestRunner): timeout = timeout * 2 self._timeout = timeout * self.tool.GetTimeoutScale() - self._perf_controller = perf_control.PerfControl(self.adb) + if _TestSuiteRequiresHighPerfMode(self.test_package.suite_name): + self._perf_controller = perf_control.PerfControl(self.adb) #override def InstallTestPackage(self): -- cgit v1.1