mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-06-01 02:55:07 +08:00
Made PX4IO update an unit test entry
This commit is contained in:
@@ -2,6 +2,8 @@
|
|||||||
#
|
#
|
||||||
# PX4FMU startup script for test hackery.
|
# PX4FMU startup script for test hackery.
|
||||||
#
|
#
|
||||||
|
set unit_test_failure 0
|
||||||
|
|
||||||
uorb start
|
uorb start
|
||||||
|
|
||||||
if sercon
|
if sercon
|
||||||
@@ -41,6 +43,9 @@ fi
|
|||||||
if px4io start
|
if px4io start
|
||||||
then
|
then
|
||||||
echo "PX4IO OK"
|
echo "PX4IO OK"
|
||||||
|
else
|
||||||
|
set unit_test_failure 1
|
||||||
|
set unit_test_failure_list "${unit_test_failure_list} px4io_start"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if px4io checkcrc $io_file
|
if px4io checkcrc $io_file
|
||||||
@@ -51,7 +56,6 @@ else
|
|||||||
tone_alarm MBABGP
|
tone_alarm MBABGP
|
||||||
if px4io forceupdate 14662 $io_file
|
if px4io forceupdate 14662 $io_file
|
||||||
then
|
then
|
||||||
usleep 500000
|
|
||||||
if px4io start
|
if px4io start
|
||||||
then
|
then
|
||||||
echo "PX4IO restart OK"
|
echo "PX4IO restart OK"
|
||||||
@@ -59,12 +63,14 @@ else
|
|||||||
else
|
else
|
||||||
echo "PX4IO restart failed"
|
echo "PX4IO restart failed"
|
||||||
tone_alarm MNGGG
|
tone_alarm MNGGG
|
||||||
sleep 5
|
set unit_test_failure 1
|
||||||
reboot
|
set unit_test_failure_list "${unit_test_failure_list} px4io_flash"
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
echo "PX4IO update failed"
|
echo "PX4IO update failed"
|
||||||
tone_alarm MNGGG
|
tone_alarm MNGGG
|
||||||
|
set unit_test_failure 1
|
||||||
|
set unit_test_failure_list "${unit_test_failure_list} px4io_flash"
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
@@ -81,8 +87,6 @@ fi
|
|||||||
# Add new unit tests using the same pattern as below.
|
# Add new unit tests using the same pattern as below.
|
||||||
#
|
#
|
||||||
|
|
||||||
set unit_test_failure 0
|
|
||||||
|
|
||||||
if mavlink_tests
|
if mavlink_tests
|
||||||
then
|
then
|
||||||
else
|
else
|
||||||
|
|||||||
Reference in New Issue
Block a user