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

Unified Diff: build/android/avd.py

Issue 1634423002: Add support to run emulator without ui on bots (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 11 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | build/android/pylib/utils/emulator.py » ('j') | build/android/pylib/utils/emulator.py » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: build/android/avd.py
diff --git a/build/android/avd.py b/build/android/avd.py
index c9f73bfea109f0cba7c71c767f52f1d66cd3b103..774c3096dcf6f8d0ba2c3fb63976303483638fef 100755
--- a/build/android/avd.py
+++ b/build/android/avd.py
@@ -58,6 +58,10 @@ def main(argv):
run_parser.add_argument('--enable-kvm', action='store_true',
dest='enable_kvm', default=False,
help='Enable kvm for faster x86 emulator run')
+ run_parser.add_argument('--on-bot', action='store_true',
jbudorick 2016/01/27 15:58:42 this should probably be --headless
Yoland Yan(Google) 2016/01/27 17:57:14 Done.
+ dest='on_bot', default=False,
+ help='Running emulator on a bot through ssh, launch '
+ 'emulator with no ui')
arguments = arg_parser.parse_args(argv[1:])
@@ -120,7 +124,8 @@ def main(argv):
enable_kvm=arguments.enable_kvm,
kill_and_launch=arguments.reset_and_launch,
sdcard_size=arguments.sdcard_size,
- storage_size=arguments.partition_size
+ storage_size=arguments.partition_size,
+ on_bot=arguments.on_bot
)
else:
emulator.LaunchTempEmulators(
@@ -131,7 +136,8 @@ def main(argv):
kill_and_launch=arguments.kill_and_launch,
sdcard_size=arguments.sdcard_size,
storage_size=arguments.partition_size,
- wait_for_boot=True
+ wait_for_boot=True,
+ on_bot=arguments.on_bot
)
if __name__ == '__main__':
« no previous file with comments | « no previous file | build/android/pylib/utils/emulator.py » ('j') | build/android/pylib/utils/emulator.py » ('J')

Powered by Google App Engine
This is Rietveld 408576698