summaryrefslogtreecommitdiff
path: root/ao-bringup
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
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')
-rwxr-xr-xao-bringup/test-easymini2
-rwxr-xr-xao-bringup/test-igniters-nowait26
2 files changed, 27 insertions, 1 deletions
diff --git a/ao-bringup/test-easymini b/ao-bringup/test-easymini
index 7850b550..ddcfcd54 100755
--- a/ao-bringup/test-easymini
+++ b/ao-bringup/test-easymini
@@ -21,7 +21,7 @@ while [ $found -eq 0 ]; do
echo -e '\e[34m'Testing $product $serial $dev'\e[39m'
echo ""
- ./test-igniters "$dev" drogue main
+ ./test-igniters-nowait "$dev" drogue main
echo ""
echo "Testing baro sensor"
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