diff options
Diffstat (limited to 'binary_search_tool/sysroot_wrapper/interactive_test_host.sh')
-rwxr-xr-x | binary_search_tool/sysroot_wrapper/interactive_test_host.sh | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/binary_search_tool/sysroot_wrapper/interactive_test_host.sh b/binary_search_tool/sysroot_wrapper/interactive_test_host.sh new file mode 100755 index 00000000..58adffc0 --- /dev/null +++ b/binary_search_tool/sysroot_wrapper/interactive_test_host.sh @@ -0,0 +1,25 @@ +#!/bin/bash -u +# +# Copyright 2017 Google Inc. All Rights Reserved. +# +# 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 for a +# host package. It waits for the test setup script to build the image, then asks +# the user if the image is good or not. (Since this is a host package, there is +# no 'install' phase needed.) This script 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 |