OLD | NEW |
1 # Copyright 2016 The Chromium Authors. All rights reserved. | 1 # Copyright 2016 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 fnmatch | 5 import fnmatch |
6 import re | 6 import re |
7 import sys | 7 import sys |
8 import json | 8 import json |
9 | 9 |
10 from telemetry.core import discover | |
11 from telemetry.internal.browser import browser_options | 10 from telemetry.internal.browser import browser_options |
12 from telemetry.internal.platform import android_device | 11 from telemetry.internal.platform import android_device |
13 from telemetry.internal.util import binary_manager | 12 from telemetry.internal.util import binary_manager |
14 from telemetry.testing import browser_test_context | 13 from telemetry.testing import browser_test_context |
15 from telemetry.testing import serially_executed_browser_test_case | 14 from telemetry.testing import serially_executed_browser_test_case |
16 | 15 |
| 16 from py_utils import discover |
17 import typ | 17 import typ |
18 from typ import arg_parser | 18 from typ import arg_parser |
19 | 19 |
20 TEST_SUFFIXES = ['*_test.py', '*_tests.py', '*_unittest.py', '*_unittests.py'] | 20 TEST_SUFFIXES = ['*_test.py', '*_tests.py', '*_unittest.py', '*_unittests.py'] |
21 | 21 |
22 | 22 |
23 def ProcessCommandLineOptions(test_class, typ_options, args): | 23 def ProcessCommandLineOptions(test_class, typ_options, args): |
24 options = browser_options.BrowserFinderOptions() | 24 options = browser_options.BrowserFinderOptions() |
25 options.browser_type = 'any' | 25 options.browser_type = 'any' |
26 parser = options.CreateParser(test_class.__doc__) | 26 parser = options.CreateParser(test_class.__doc__) |
(...skipping 319 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
346 | 346 |
347 def _TearDownProcess(child, context): | 347 def _TearDownProcess(child, context): |
348 del child, context # Unused. | 348 del child, context # Unused. |
349 browser_test_context._global_test_context.test_class.TearDownProcess() | 349 browser_test_context._global_test_context.test_class.TearDownProcess() |
350 browser_test_context._global_test_context = None | 350 browser_test_context._global_test_context = None |
351 | 351 |
352 | 352 |
353 if __name__ == '__main__': | 353 if __name__ == '__main__': |
354 ret_code = RunTests(sys.argv[1:]) | 354 ret_code = RunTests(sys.argv[1:]) |
355 sys.exit(ret_code) | 355 sys.exit(ret_code) |
OLD | NEW |