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:
parent
3bcd5ee328
commit
e98aac8fde
@ -64,6 +64,10 @@ 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 ;;
|
||||
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user