More adjustments to test start

This commit is contained in:
Lorenz Meier 2015-02-08 23:24:50 +01:00
parent 6149f8365c
commit 60dcff447c
1 changed files with 7 additions and 2 deletions

View File

@ -112,7 +112,10 @@ fi
adc start adc start
# XXX this syntax is not quite right, but if takes no flags (yet) # 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 then
# This is an FMUv1 or FMUv2 # This is an FMUv1 or FMUv2
echo "FMUv2 (or FMUv3 where 'hmc5883 -I -S start' failed)" echo "FMUv2 (or FMUv3 where 'hmc5883 -I -S start' failed)"
@ -130,7 +133,9 @@ else
ms5611 start ms5611 start
fi fi
tests all if tests all
then
fi
if [ $? != 0 ] if [ $? != 0 ]
then then
set unit_test_failure 1 set unit_test_failure 1