blob: bb01b950deb1945be4e94343c4418b5f69a6a2d0 [file] [log] [blame]
#!/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, 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/
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.";;
exit 125