1#!/bin/bash -u 2# 3# Copyright 2017 Google Inc. All Rights Reserved. 4# 5# This script is intended to be used by binary_search_state.py, as 6# part of the binary search triage on ChromeOS package and object files for a 7# host package. It waits for the test setup script to build the image, then asks 8# the user if the image is good or not. (Since this is a host package, there is 9# no 'install' phase needed.) This script should return '0' if the test succeeds 10# (the image is 'good'); '1' if the test fails (the image is 'bad'); and '125' 11# if it could not determine (does not apply in this case). 12# 13 14source common/common.sh 15 16while true; do 17 read -p "Is this a good ChromeOS image?" yn 18 case $yn in 19 [Yy]* ) exit 0;; 20 [Nn]* ) exit 1;; 21 * ) echo "Please answer yes or no.";; 22 esac 23done 24 25exit 125 26