diff options
author | Keith Packard <keithp@keithp.com> | 2018-03-16 14:49:04 -0700 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2018-03-16 14:49:04 -0700 |
commit | 46d8197bb80ce3fe4cdc7b36c3be211366093bd5 (patch) | |
tree | 73b0921f6d354e8d242f08e07f78b60acea92e16 /ao-bringup/test-igniters-nowait | |
parent | 78a90fc760b88ab66c5c238289afc38356e29d8a (diff) |
ao-bringup: Don't wait for user when testing EasyMini igniters
I always have the LEDs ready to go before starting the turnon process.
Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'ao-bringup/test-igniters-nowait')
-rwxr-xr-x | ao-bringup/test-igniters-nowait | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/ao-bringup/test-igniters-nowait b/ao-bringup/test-igniters-nowait new file mode 100755 index 00000000..849f91de --- /dev/null +++ b/ao-bringup/test-igniters-nowait @@ -0,0 +1,26 @@ +#!/bin/sh + +dev="$1" +shift + +for igniter in "$@"; do + pass="n" + while [ $pass != "y" ]; do + + echo "Testing $igniter igniter." + ../ao-tools/ao-test-igniter/ao-test-igniter --tty="$dev" $igniter + + case $? in + 0) + echo "pass" + pass="y" + ;; + *) + echo -n "Failed. Try again. Press enter to continue..." + read foo < /dev/tty + ;; + esac + done +done + +exit 0 |