diff options
author | Lorenz Meier <lm@inf.ethz.ch> | 2015-02-05 12:44:16 +0100 |
---|---|---|
committer | Lorenz Meier <lm@inf.ethz.ch> | 2015-02-05 12:44:16 +0100 |
commit | 087bf05ae3b6111e113ff580a3ad096c0c024a28 (patch) | |
tree | 2aeed3820459c734c27f741910b4974a1410c581 /ROMFS/px4fmu_test | |
parent | 4320afabf1c3b85c067469c5264e879ad1f2a044 (diff) | |
download | px4-firmware-087bf05ae3b6111e113ff580a3ad096c0c024a28.tar.gz px4-firmware-087bf05ae3b6111e113ff580a3ad096c0c024a28.tar.bz2 px4-firmware-087bf05ae3b6111e113ff580a3ad096c0c024a28.zip |
Made PX4IO update an unit test entry
Diffstat (limited to 'ROMFS/px4fmu_test')
-rw-r--r-- | ROMFS/px4fmu_test/init.d/rcS | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/ROMFS/px4fmu_test/init.d/rcS b/ROMFS/px4fmu_test/init.d/rcS index 4b9a9b68a..3d1c4a907 100644 --- a/ROMFS/px4fmu_test/init.d/rcS +++ b/ROMFS/px4fmu_test/init.d/rcS @@ -2,6 +2,8 @@ # # PX4FMU startup script for test hackery. # +set unit_test_failure 0 + uorb start if sercon @@ -41,6 +43,9 @@ fi if px4io start then echo "PX4IO OK" +else + set unit_test_failure 1 + set unit_test_failure_list "${unit_test_failure_list} px4io_start" fi if px4io checkcrc $io_file @@ -51,7 +56,6 @@ else tone_alarm MBABGP if px4io forceupdate 14662 $io_file then - usleep 500000 if px4io start then echo "PX4IO restart OK" @@ -59,12 +63,14 @@ else else echo "PX4IO restart failed" tone_alarm MNGGG - sleep 5 - reboot + set unit_test_failure 1 + set unit_test_failure_list "${unit_test_failure_list} px4io_flash" fi else echo "PX4IO update failed" tone_alarm MNGGG + set unit_test_failure 1 + set unit_test_failure_list "${unit_test_failure_list} px4io_flash" fi fi @@ -81,8 +87,6 @@ fi # Add new unit tests using the same pattern as below. # -set unit_test_failure 0 - if mavlink_tests then else |