mirror of
https://gitee.com/xiaohuolufeihua/bizhang_-obav.git
synced 2026-05-21 01:12:11 +00:00
Indicate test status with RGB led
This commit is contained in:
@@ -6,6 +6,11 @@ set unit_test_failure 0
|
||||
|
||||
uorb start
|
||||
|
||||
if rgbled start
|
||||
then
|
||||
rgbled rgb 20 20 255
|
||||
fi
|
||||
|
||||
if sercon
|
||||
then
|
||||
echo "[i] USB interface connected"
|
||||
@@ -217,9 +222,11 @@ if [ $unit_test_failure == 0 ]
|
||||
then
|
||||
echo
|
||||
echo "All Unit Tests PASSED"
|
||||
rgbled rgb 20 255 20
|
||||
else
|
||||
echo
|
||||
echo "Some Unit Tests FAILED:${unit_test_failure_list}"
|
||||
rgbled rgb 255 20 20
|
||||
fi
|
||||
|
||||
ver all
|
||||
|
||||
Reference in New Issue
Block a user