diff options
author | Zhizhou Yang <zhizhouy@google.com> | 2017-07-22 01:03:02 +0000 |
---|---|---|
committer | android-build-merger <android-build-merger@google.com> | 2017-07-22 01:03:02 +0000 |
commit | 6c551e0d526de7de9d86516614d645cba6f975a6 (patch) | |
tree | bf139ee25415cecde142e95791edba3803b2452a /binary_search_tool/common/interactive_test_noping.sh | |
parent | 3690e025de8daaed03c4acb02d2b054e5c4c0dd5 (diff) | |
parent | 18caef1edd870ff3850fe2c417bbcec00c2ba7e0 (diff) | |
download | toolchain-utils-6c551e0d526de7de9d86516614d645cba6f975a6.tar.gz |
Merge branch 'aosp/mirror-chromium-master' into update_utils am: 4307f4735e
am: 18caef1edd
Change-Id: Ic12e19d78d60a8e444592bfa8783e234456c0051
Diffstat (limited to 'binary_search_tool/common/interactive_test_noping.sh')
-rwxr-xr-x | binary_search_tool/common/interactive_test_noping.sh | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/binary_search_tool/common/interactive_test_noping.sh b/binary_search_tool/common/interactive_test_noping.sh new file mode 100755 index 00000000..bb01b950 --- /dev/null +++ b/binary_search_tool/common/interactive_test_noping.sh @@ -0,0 +1,27 @@ +#!/bin/bash -u +# +# Copyright 2016 Google Inc. All Rights Reserved. +# +# This script asks the user if the image is good or not, allowing the user to +# conduct whatever tests the user wishes, and waiting for a response. +# +# This script is intended to be used by binary_search_state.py, as +# part of the binary search triage on ChromeOS package and object files. It +# waits for the test setup script to build and install the image, then asks the +# user if the image is good or not. It should return '0' if the test succeeds +# (the image is 'good'); '1' if the test fails (the image is 'bad'); and '125' +# if it could not determine (does not apply in this case). +# + +source common/common.sh + +while true; do + read -p "Is this a good ChromeOS image?" yn + case $yn in + [Yy]* ) exit 0;; + [Nn]* ) exit 1;; + * ) echo "Please answer yes or no.";; + esac +done + +exit 125 |