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

Side by Side Diff: build/android/pylib/single_test_runner.py

Issue 11759012: [Android] Move GTest options to test_options_parser.py. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase (again) Created 7 years, 11 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 | Annotate | Revision Log
« no previous file with comments | « build/android/pylib/run_tests_helper.py ('k') | build/android/pylib/test_options_parser.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 glob 5 import glob
6 import logging 6 import logging
7 import os 7 import os
8 import sys 8 import sys
9 9
10 import android_commands 10 import android_commands
11 from android_commands import errors 11 from android_commands import errors
12 from base_test_runner import BaseTestRunner 12 from base_test_runner import BaseTestRunner
13 import constants 13 import constants
14 import debug_info 14 import debug_info
15 import perf_tests_helper 15 import perf_tests_helper
16 import run_tests_helper
17 from test_package_apk import TestPackageApk 16 from test_package_apk import TestPackageApk
18 from test_package_executable import TestPackageExecutable 17 from test_package_executable import TestPackageExecutable
19 from test_result import BaseTestResult, TestResults 18 from test_result import BaseTestResult, TestResults
19 from utils import run_tests_helper
20 20
21 21
22 class SingleTestRunner(BaseTestRunner): 22 class SingleTestRunner(BaseTestRunner):
23 """Single test suite attached to a single device. 23 """Single test suite attached to a single device.
24 24
25 Args: 25 Args:
26 device: Device to run the tests. 26 device: Device to run the tests.
27 test_suite: A specific test suite to run, empty to run all. 27 test_suite: A specific test suite to run, empty to run all.
28 gtest_filter: A gtest_filter flag. 28 gtest_filter: A gtest_filter flag.
29 test_arguments: Additional arguments to pass to the test binary. 29 test_arguments: Additional arguments to pass to the test binary.
(...skipping 254 matching lines...) Expand 10 before | Expand all | Expand 10 after
284 def TearDown(self): 284 def TearDown(self):
285 """Cleans up the test enviroment for the test suite.""" 285 """Cleans up the test enviroment for the test suite."""
286 self.tool.CleanUpEnvironment() 286 self.tool.CleanUpEnvironment()
287 if self.test_package.cleanup_test_files: 287 if self.test_package.cleanup_test_files:
288 self.adb.RemovePushedFiles() 288 self.adb.RemovePushedFiles()
289 if self.dump_debug_info: 289 if self.dump_debug_info:
290 self.dump_debug_info.StopRecordingLog() 290 self.dump_debug_info.StopRecordingLog()
291 if self.dump_debug_info: 291 if self.dump_debug_info:
292 self.dump_debug_info.ArchiveNewCrashFiles() 292 self.dump_debug_info.ArchiveNewCrashFiles()
293 super(SingleTestRunner, self).TearDown() 293 super(SingleTestRunner, self).TearDown()
OLDNEW
« no previous file with comments | « build/android/pylib/run_tests_helper.py ('k') | build/android/pylib/test_options_parser.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698