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

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') | no next file with comments »
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..08e78c7cf09590b6ef27030defaed31b938a73c4 100755
--- a/build/android/avd.py
+++ b/build/android/avd.py
@@ -58,6 +58,9 @@ 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('--headless', action='store_true',
+ dest='headless', default=False,
+ help='Launch an emulator with no UI.')
arguments = arg_parser.parse_args(argv[1:])
@@ -120,7 +123,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,
+ headless=arguments.headless
)
else:
emulator.LaunchTempEmulators(
@@ -131,7 +135,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,
+ headless=arguments.headless
)
if __name__ == '__main__':
« no previous file with comments | « no previous file | build/android/pylib/utils/emulator.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698