summaryrefslogtreecommitdiff
path: root/ao-bringup/test-igniters-nowait
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2018-03-16 14:49:04 -0700
committerKeith Packard <keithp@keithp.com>2018-03-16 14:49:04 -0700
commit46d8197bb80ce3fe4cdc7b36c3be211366093bd5 (patch)
tree73b0921f6d354e8d242f08e07f78b60acea92e16 /ao-bringup/test-igniters-nowait
parent78a90fc760b88ab66c5c238289afc38356e29d8a (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-xao-bringup/test-igniters-nowait26
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