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

Side by Side Diff: build/android/adb_install_content_shell

Issue 10993069: Adds AndroidWebView and ChromiumTestShell tests to the Android FYI bot. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Addressed Isaac's comments. Created 8 years, 2 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 | « build/android/adb_install_apk.py ('k') | build/android/buildbot/buildbot_functions.sh » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 #!/usr/bin/env python
2 #
3 # Copyright (c) 2012 The Chromium Authors. All rights reserved.
4 # Use of this source code is governed by a BSD-style license that can be
5 # found in the LICENSE file.
6
7 from multiprocessing import Process
8 import optparse
9 import os
10 import sys
11
12 from pylib import android_commands
13 from pylib import test_options_parser
14 from pylib import constants
15
16
17 def InstallContentShell(device, build_type):
18 apk_path = os.path.join(os.environ['CHROME_SRC'],
19 'out', build_type,
20 constants.SDK_BUILD_APKS_DIR, 'ContentShell-debug.apk' )
21 result = android_commands.AndroidCommands(device=device).ManagedInstall(
22 apk_path, False, 'org.chromium.content_shell')
23 print '----- Installed on %s -----' % device
24 print result
25
26
27 parser = optparse.OptionParser()
28 test_options_parser.AddBuildTypeOption(parser)
29 options, args = parser.parse_args(sys.argv)
30
31 devices = android_commands.GetAttachedDevices()
32 if not devices:
33 raise Exception('Error: no connected devices')
34
35 procs = []
36 for device in devices:
37 p = Process(target=InstallContentShell, args=(device, options.build_type))
38 p.start()
39 procs += [p]
40
41 for p in procs:
42 p.join()
OLDNEW
« no previous file with comments | « build/android/adb_install_apk.py ('k') | build/android/buildbot/buildbot_functions.sh » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698