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

Side by Side Diff: telemetry/telemetry/testing/run_browser_tests.py

Issue 2941123002: [Telemetry] Move discover to common/py_utils (Closed)
Patch Set: fix imports Created 3 years, 6 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
« no previous file with comments | « telemetry/telemetry/record_wpr.py ('k') | telemetry/telemetry/testing/story_set_smoke_test.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 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
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)
OLDNEW
« no previous file with comments | « telemetry/telemetry/record_wpr.py ('k') | telemetry/telemetry/testing/story_set_smoke_test.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698