Fix iteropts.sh to correctly return error code

This commit is contained in:
Dirk Ziegelmeier 2019-02-03 09:31:26 +01:00
parent 32bc761245
commit a7b06bef5f

View File

@ -17,7 +17,14 @@ do
rm $EXAPPDIR/lwipopts_test.h rm $EXAPPDIR/lwipopts_test.h
# cat the file to update its timestamp # cat the file to update its timestamp
cat $f > $EXAPPDIR/lwipopts_test.h cat $f > $EXAPPDIR/lwipopts_test.h
make TESTFLAGS="-DLWIP_OPTTEST_FILE -Wno-documentation" -j 4 1> $BUILDLOG 2>&1 || (RETVAL=1; echo file $f failed >> $LOGFILE; echo ++++++++ $f FAILED +++++++; cat $BUILDLOG) make TESTFLAGS="-DLWIP_OPTTEST_FILE -Wno-documentation" -j 4 1> $BUILDLOG 2>&1
ERR=$?
if [ $ERR != 0 ]; then
cat $BUILDLOG
echo file $f failed with $ERR >> $LOGFILE
echo ++++++++ $f FAILED +++++++
RETVAL=1
fi
echo test $f done >> $LOGFILE echo test $f done >> $LOGFILE
done done
echo done, cleaning echo done, cleaning