Support building adb silently in non-prompt mode.
Bug: 161759557
Test: m clean adb & acloud-py3-dev create
Change-Id: I43edd2da348d852466fec99694471d597b6dbb86
diff --git a/create/create.py b/create/create.py
index 711134f..f15c605 100644
--- a/create/create.py
+++ b/create/create.py
@@ -48,6 +48,7 @@
_MAKE_CMD = "build/soong/soong_ui.bash"
_MAKE_ARG = "--make-mode"
+_YES = "y"
_CREATOR_CLASS_DICT = {
# GCE types
@@ -122,7 +123,7 @@
return
disable_autoconnect = False
- answer = utils.InteractWithQuestion(
+ answer = _YES if args.no_prompt else utils.InteractWithQuestion(
"adb is required for autoconnect, without it autoconnect will be "
"disabled, would you like acloud to build it[y/N]? ")
if answer in constants.USER_ANSWER_YES: