OLD | NEW |
| (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) | |
OLD | NEW |