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

Side by Side Diff: build/android/buildbot/bb_device_steps.py

Issue 19799003: [android] Instumentation tests determine whether to install test apk based on Md5Sum. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: unnecessary import Created 7 years, 5 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 | « no previous file | build/android/pylib/android_commands.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 #!/usr/bin/env python 1 #!/usr/bin/env python
2 # Copyright (c) 2013 The Chromium Authors. All rights reserved. 2 # Copyright (c) 2013 The Chromium Authors. All rights reserved.
3 # Use of this source code is governed by a BSD-style license that can be 3 # Use of this source code is governed by a BSD-style license that can be
4 # found in the LICENSE file. 4 # found in the LICENSE file.
5 5
6 import collections 6 import collections
7 import glob 7 import glob
8 import multiprocessing 8 import multiprocessing
9 import os 9 import os
10 import shutil 10 import shutil
(...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after
160 """Manages an invocation of test_runner.py for instrumentation tests. 160 """Manages an invocation of test_runner.py for instrumentation tests.
161 161
162 Args: 162 Args:
163 options: options object 163 options: options object
164 test: An I_TEST namedtuple 164 test: An I_TEST namedtuple
165 """ 165 """
166 bb_annotations.PrintNamedStep('%s_instrumentation_tests' % test.name.lower()) 166 bb_annotations.PrintNamedStep('%s_instrumentation_tests' % test.name.lower())
167 167
168 InstallApk(options, test) 168 InstallApk(options, test)
169 args = ['--test-apk', test.test_apk, '--test_data', test.test_data, 169 args = ['--test-apk', test.test_apk, '--test_data', test.test_data,
170 '--verbose', '-I'] 170 '--verbose']
171 if options.target == 'Release': 171 if options.target == 'Release':
172 args.append('--release') 172 args.append('--release')
173 if options.asan: 173 if options.asan:
174 args.append('--tool=asan') 174 args.append('--tool=asan')
175 if options.upload_to_flakiness_server: 175 if options.upload_to_flakiness_server:
176 args.append('--flakiness-dashboard-server=%s' % 176 args.append('--flakiness-dashboard-server=%s' %
177 constants.UPSTREAM_FLAKINESS_SERVER) 177 constants.UPSTREAM_FLAKINESS_SERVER)
178 if test.host_driven_root: 178 if test.host_driven_root:
179 args.append('--python_test_root=%s' % test.host_driven_root) 179 args.append('--python_test_root=%s' % test.host_driven_root)
180 if test.annotation: 180 if test.annotation:
(...skipping 202 matching lines...) Expand 10 before | Expand all | Expand 10 after
383 return sys.exit('Unknown tests %s' % list(unknown_tests)) 383 return sys.exit('Unknown tests %s' % list(unknown_tests))
384 384
385 setattr(options, 'target', options.factory_properties.get('target', 'Debug')) 385 setattr(options, 'target', options.factory_properties.get('target', 'Debug'))
386 386
387 MainTestWrapper(options) 387 MainTestWrapper(options)
388 provision_devices.KillHostHeartbeat() 388 provision_devices.KillHostHeartbeat()
389 389
390 390
391 if __name__ == '__main__': 391 if __name__ == '__main__':
392 sys.exit(main(sys.argv)) 392 sys.exit(main(sys.argv))
OLDNEW
« no previous file with comments | « no previous file | build/android/pylib/android_commands.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698