Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(181)

Side by Side Diff: build/android/pylib/gtest/test_runner.py

Issue 1138993009: Revert of [Android] Refactor the native test wrappers. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 # Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 import logging 5 import logging
6 import os 6 import os
7 import re 7 import re
8 8
9 from pylib import pexpect 9 from pylib import pexpect
10 from pylib import ports 10 from pylib import ports
11 from pylib.base import base_test_result 11 from pylib.base import base_test_result
12 from pylib.base import base_test_runner 12 from pylib.base import base_test_runner
13 from pylib.device import device_errors 13 from pylib.device import device_errors
14 from pylib.gtest import gtest_test_instance
15 from pylib.local import local_test_server_spawner 14 from pylib.local import local_test_server_spawner
16 from pylib.perf import perf_control 15 from pylib.perf import perf_control
17 16
18 # Test case statuses. 17 # Test case statuses.
19 RE_RUN = re.compile('\\[ RUN \\] ?(.*)\r\n') 18 RE_RUN = re.compile('\\[ RUN \\] ?(.*)\r\n')
20 RE_FAIL = re.compile('\\[ FAILED \\] ?(.*?)( \\((\\d+) ms\\))?\r\r\n') 19 RE_FAIL = re.compile('\\[ FAILED \\] ?(.*?)( \\((\\d+) ms\\))?\r\r\n')
21 RE_OK = re.compile('\\[ OK \\] ?(.*?)( \\((\\d+) ms\\))?\r\r\n') 20 RE_OK = re.compile('\\[ OK \\] ?(.*?)( \\((\\d+) ms\\))?\r\r\n')
22 21
23 # Test run statuses. 22 # Test run statuses.
24 RE_PASSED = re.compile('\\[ PASSED \\] ?(.*)\r\n') 23 RE_PASSED = re.compile('\\[ PASSED \\] ?(.*)\r\n')
(...skipping 168 matching lines...) Expand 10 before | Expand all | Expand 10 after
193 #override 192 #override
194 def TearDown(self): 193 def TearDown(self):
195 """Cleans up the test enviroment for the test suite.""" 194 """Cleans up the test enviroment for the test suite."""
196 for s in self._servers: 195 for s in self._servers:
197 s.TearDown() 196 s.TearDown()
198 if _TestSuiteRequiresHighPerfMode(self.test_package.suite_name): 197 if _TestSuiteRequiresHighPerfMode(self.test_package.suite_name):
199 self._perf_controller.SetDefaultPerfMode() 198 self._perf_controller.SetDefaultPerfMode()
200 self.test_package.ClearApplicationState(self.device) 199 self.test_package.ClearApplicationState(self.device)
201 self.tool.CleanUpEnvironment() 200 self.tool.CleanUpEnvironment()
202 super(TestRunner, self).TearDown() 201 super(TestRunner, self).TearDown()
OLDNEW
« no previous file with comments | « build/android/pylib/gtest/test_package_apk.py ('k') | build/android/pylib/instrumentation/instrumentation_test_instance.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698