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

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

Issue 105933002: Roll swarming_client @ 9cc42c3d4d. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Roll to 9cc42c3d4d instead. Created 7 years 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 | « DEPS ('k') | build/isolate.gypi » ('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 2013 The Chromium Authors. All rights reserved. 1 # Copyright 2013 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 """Generates test runner factory and tests for GTests.""" 5 """Generates test runner factory and tests for GTests."""
6 6
7 import fnmatch 7 import fnmatch
8 import glob 8 import glob
9 import logging 9 import logging
10 import os 10 import os
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after
107 107
108 isolate_abs_path = os.path.join(constants.DIR_SOURCE_ROOT, isolate_rel_path) 108 isolate_abs_path = os.path.join(constants.DIR_SOURCE_ROOT, isolate_rel_path)
109 isolated_abs_path = os.path.join( 109 isolated_abs_path = os.path.join(
110 constants.GetOutDirectory(), '%s.isolated' % suite_name) 110 constants.GetOutDirectory(), '%s.isolated' % suite_name)
111 assert os.path.exists(isolate_abs_path) 111 assert os.path.exists(isolate_abs_path)
112 isolate_cmd = [ 112 isolate_cmd = [
113 'python', _ISOLATE_SCRIPT, 113 'python', _ISOLATE_SCRIPT,
114 'remap', 114 'remap',
115 '--isolate', isolate_abs_path, 115 '--isolate', isolate_abs_path,
116 '--isolated', isolated_abs_path, 116 '--isolated', isolated_abs_path,
117 '-V', 'PRODUCT_DIR=%s' % constants.GetOutDirectory(), 117 '--path-variable', 'PRODUCT_DIR', constants.GetOutDirectory(),
118 '-V', 'OS=android', 118 '--config-variable', 'OS', 'android',
119 '--outdir', constants.ISOLATE_DEPS_DIR, 119 '--outdir', constants.ISOLATE_DEPS_DIR,
120 ] 120 ]
121 assert not cmd_helper.RunCmd(isolate_cmd) 121 assert not cmd_helper.RunCmd(isolate_cmd)
122 122
123 # We're relying on the fact that timestamps are preserved 123 # We're relying on the fact that timestamps are preserved
124 # by the remap command (hardlinked). Otherwise, all the data 124 # by the remap command (hardlinked). Otherwise, all the data
125 # will be pushed to the device once we move to using time diff 125 # will be pushed to the device once we move to using time diff
126 # instead of md5sum. Perform a sanity check here. 126 # instead of md5sum. Perform a sanity check here.
127 for root, _, filenames in os.walk(constants.ISOLATE_DEPS_DIR): 127 for root, _, filenames in os.walk(constants.ISOLATE_DEPS_DIR):
128 if filenames: 128 if filenames:
(...skipping 179 matching lines...) Expand 10 before | Expand all | Expand 10 after
308 if test_options.gtest_filter: 308 if test_options.gtest_filter:
309 tests = unittest_util.FilterTestNames(tests, test_options.gtest_filter) 309 tests = unittest_util.FilterTestNames(tests, test_options.gtest_filter)
310 310
311 # Coalesce unit tests into a single test per device 311 # Coalesce unit tests into a single test per device
312 if test_options.suite_name != 'content_browsertests': 312 if test_options.suite_name != 'content_browsertests':
313 num_devices = len(devices) 313 num_devices = len(devices)
314 tests = [':'.join(tests[i::num_devices]) for i in xrange(num_devices)] 314 tests = [':'.join(tests[i::num_devices]) for i in xrange(num_devices)]
315 tests = [t for t in tests if t] 315 tests = [t for t in tests if t]
316 316
317 return (TestRunnerFactory, tests) 317 return (TestRunnerFactory, tests)
OLDNEW
« no previous file with comments | « DEPS ('k') | build/isolate.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698