jig: led-interface: give better feedback when running

Provide a light pattern when the test is running normally.

Signed-off-by: Sean Cross <sean@xobs.io>
This commit is contained in:
Sean Cross 2019-05-26 18:46:30 +08:00
parent 3bcd5ee328
commit e98aac8fde

View File

@ -64,6 +64,10 @@ gpio_setup() {
} }
fail_test() { fail_test() {
led_off 2
led_off 3
led_off 4
case $1 in case $1 in
load-tester-bitstream) ;; load-tester-bitstream) ;;
run-all-tests) led_on 2 ;; run-all-tests) led_on 2 ;;
@ -86,6 +90,9 @@ do
if echo "${line}" | grep -iq '^start' if echo "${line}" | grep -iq '^start'
then then
all_off all_off
led_on 2
led_on 3
led_on 4
failures=0 failures=0
elif echo "${line}" | grep -iq '^fail' elif echo "${line}" | grep -iq '^fail'
then then
@ -101,7 +108,9 @@ do
result=$(echo ${line} | awk '{print $3}') result=$(echo ${line} | awk '{print $3}')
if [ ${result} -ge 200 -a ${result} -lt 300 ] if [ ${result} -ge 200 -a ${result} -lt 300 ]
then then
led_on 5 led_off 2
led_off 3
led_off 4
else else
led_on 1 led_on 1
fi fi