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

Side by Side Diff: build/android/emulator.py

Issue 12407004: Add script to download SDK, system images and create and start AVDs for testing. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Do not catch exceptions so that stack trace is revealed. Created 7 years, 9 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 | « build/android/avd.py ('k') | build/android/install_emulator_deps.py » ('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 """Script to launch Android emulators.
8
9 Assumes system environment ANDROID_NDK_ROOT has been set.
10 """
11
12 import optparse
13 import sys
14
15 from pylib.utils import emulator
16
17
18 def main(argv):
19 option_parser = optparse.OptionParser()
20 option_parser.add_option('-n', '--num', dest='emulator_count',
21 help='Number of emulators to launch.',
22 type='int',
23 default=1)
24 option_parser.add_option('-w', '--wait', dest='wait_for_boot',
25 action='store_true',
26 help='If set, wait for the emulators to boot.')
27 options, args = option_parser.parse_args(argv)
28 emulator.LaunchEmulators(options.emulator_count, options.wait_for_boot)
29
30
31 if __name__ == '__main__':
32 main(sys.argv)
OLDNEW
« no previous file with comments | « build/android/avd.py ('k') | build/android/install_emulator_deps.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698