aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLorenz Meier <lm@inf.ethz.ch>2015-02-08 23:24:50 +0100
committerLorenz Meier <lm@inf.ethz.ch>2015-02-08 23:24:50 +0100
commit60dcff447c39d4ac2602895522f9d5a343d6cc87 (patch)
treeee70be86f8397d333f939c05115502b31f571a53
parent6149f8365cdd2d13736a937dda6f31887979460d (diff)
downloadpx4-firmware-60dcff447c39d4ac2602895522f9d5a343d6cc87.tar.gz
px4-firmware-60dcff447c39d4ac2602895522f9d5a343d6cc87.tar.bz2
px4-firmware-60dcff447c39d4ac2602895522f9d5a343d6cc87.zip
More adjustments to test start
-rw-r--r--ROMFS/px4fmu_test/init.d/rcS9
1 files changed, 7 insertions, 2 deletions
diff --git a/ROMFS/px4fmu_test/init.d/rcS b/ROMFS/px4fmu_test/init.d/rcS
index a0f5bd098..b0c17b1af 100644
--- a/ROMFS/px4fmu_test/init.d/rcS
+++ b/ROMFS/px4fmu_test/init.d/rcS
@@ -112,7 +112,10 @@ fi
adc start
# XXX this syntax is not quite right, but if takes no flags (yet)
-if [ hmc5883 -I -S start ]
+if hmc5883 -I -S start
+then
+fi
+if [ $? != 0 ]
then
# This is an FMUv1 or FMUv2
echo "FMUv2 (or FMUv3 where 'hmc5883 -I -S start' failed)"
@@ -130,7 +133,9 @@ else
ms5611 start
fi
-tests all
+if tests all
+then
+fi
if [ $? != 0 ]
then
set unit_test_failure 1