From e98aac8fdec005690051f886f12e6696aaafd7ee Mon Sep 17 00:00:00 2001 From: Sean Cross Date: Sun, 26 May 2019 18:46:30 +0800 Subject: [PATCH] jig: led-interface: give better feedback when running Provide a light pattern when the test is running normally. Signed-off-by: Sean Cross --- jig/bin/led-interface.sh | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/jig/bin/led-interface.sh b/jig/bin/led-interface.sh index 1477088..ce6191b 100644 --- a/jig/bin/led-interface.sh +++ b/jig/bin/led-interface.sh @@ -64,9 +64,13 @@ gpio_setup() { } fail_test() { + led_off 2 + led_off 3 + led_off 4 + case $1 in - load-tester-bitstream) ;; - run-all-tests) led_on 2 ;; + load-tester-bitstream) ;; + run-all-tests) led_on 2 ;; validate-spi) led_on 3 ; led_on 4 ;; test-spi) led_on 3 ;; test-rgbg) led_on 2 ; led_on 3 ;; @@ -86,6 +90,9 @@ do if echo "${line}" | grep -iq '^start' then all_off + led_on 2 + led_on 3 + led_on 4 failures=0 elif echo "${line}" | grep -iq '^fail' then @@ -101,7 +108,9 @@ do result=$(echo ${line} | awk '{print $3}') if [ ${result} -ge 200 -a ${result} -lt 300 ] then - led_on 5 + led_off 2 + led_off 3 + led_off 4 else led_on 1 fi