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
|
uorb start
|
||||||
|
|
||||||
|
if rgbled start
|
||||||
|
then
|
||||||
|
rgbled rgb 20 20 255
|
||||||
|
fi
|
||||||
|
|
||||||
if sercon
|
if sercon
|
||||||
then
|
then
|
||||||
echo "[i] USB interface connected"
|
echo "[i] USB interface connected"
|
||||||
@@ -217,9 +222,11 @@ if [ $unit_test_failure == 0 ]
|
|||||||
then
|
then
|
||||||
echo
|
echo
|
||||||
echo "All Unit Tests PASSED"
|
echo "All Unit Tests PASSED"
|
||||||
|
rgbled rgb 20 255 20
|
||||||
else
|
else
|
||||||
echo
|
echo
|
||||||
echo "Some Unit Tests FAILED:${unit_test_failure_list}"
|
echo "Some Unit Tests FAILED:${unit_test_failure_list}"
|
||||||
|
rgbled rgb 255 20 20
|
||||||
fi
|
fi
|
||||||
|
|
||||||
ver all
|
ver all
|
||||||
|
|||||||
Reference in New Issue
Block a user