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

Side by Side Diff: build/android/pylib/instrumentation/run_java_tests.py

Issue 11879031: [Android] Move base tests classes to pylib/base (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixed nits 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
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 """Runs the Java tests. See more information on run_instrumentation_tests.py.""" 5 """Runs the Java tests. See more information on run_instrumentation_tests.py."""
6 6
7 import fnmatch 7 import fnmatch
8 import logging 8 import logging
9 import os 9 import os
10 import re 10 import re
11 import shutil 11 import shutil
12 import sys 12 import sys
13 import time 13 import time
14 14
15 from pylib import android_commands 15 from pylib import android_commands
16 from pylib import cmd_helper 16 from pylib import cmd_helper
17 from pylib import constants 17 from pylib import constants
18 from pylib import sharded_tests_queue
19 from pylib import valgrind_tools 18 from pylib import valgrind_tools
20 from pylib.android_commands import errors 19 from pylib.android_commands import errors
21 from pylib.base_test_runner import BaseTestRunner 20 from pylib.base import sharded_tests_queue
22 from pylib.base_test_sharder import BaseTestSharder, SetTestsContainer 21 from pylib.base.base_test_runner import BaseTestRunner
22 from pylib.base.base_test_sharder import BaseTestSharder, SetTestsContainer
23 from pylib.base.test_result import SingleTestResult, TestResults
23 from pylib.forwarder import Forwarder 24 from pylib.forwarder import Forwarder
24 from pylib.json_perf_parser import GetAverageRunInfoFromJSONString 25 from pylib.json_perf_parser import GetAverageRunInfoFromJSONString
25 from pylib.perf_tests_helper import PrintPerfResult 26 from pylib.perf_tests_helper import PrintPerfResult
26 from pylib.test_result import SingleTestResult, TestResults
27 27
28 import apk_info 28 import apk_info
29 29
30 30
31 _PERF_TEST_ANNOTATION = 'PerfTest' 31 _PERF_TEST_ANNOTATION = 'PerfTest'
32 32
33 33
34 class FatalTestException(Exception): 34 class FatalTestException(Exception):
35 """A fatal test exception.""" 35 """A fatal test exception."""
36 pass 36 pass
(...skipping 549 matching lines...) Expand 10 before | Expand all | Expand 10 after
586 586
587 logging.info('Will run: %s', str(tests)) 587 logging.info('Will run: %s', str(tests))
588 588
589 if len(attached_devices) > 1 and (coverage or options.wait_for_debugger): 589 if len(attached_devices) > 1 and (coverage or options.wait_for_debugger):
590 logging.warning('Coverage / debugger can not be sharded, ' 590 logging.warning('Coverage / debugger can not be sharded, '
591 'using first available device') 591 'using first available device')
592 attached_devices = attached_devices[:1] 592 attached_devices = attached_devices[:1]
593 sharder = TestSharder(attached_devices, options, tests, apks) 593 sharder = TestSharder(attached_devices, options, tests, apks)
594 test_results = sharder.RunShardedTests() 594 test_results = sharder.RunShardedTests()
595 return test_results 595 return test_results
OLDNEW
« no previous file with comments | « build/android/pylib/host_driven/run_python_tests.py ('k') | build/android/pylib/sharded_tests_queue.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698