CI script tests: homogenize logs

This commit is contained in:
Simon Duquennoy 2017-11-14 10:00:15 +01:00
parent 295a0c6d63
commit 45ef10ff64
2 changed files with 4 additions and 4 deletions

View File

@ -38,7 +38,7 @@ rm COOJA.testlog
rm COOJA.log
if [ $STATUS -eq 0 ] ; then
echo "$BASENAME: TEST OK" | tee $BASENAME.testlog;
printf "%-32s TEST OK\n" "$BASENAME" | tee $BASENAME.testlog;
else
# Verbose output when using CI
if [ "$CI" = "true" ]; then
@ -49,7 +49,7 @@ else
echo "==== Check $BASENAME.coojalog, $BASENAME.tunsliplog, and $BASENAME.scriptlog for details ====";
fi;
echo "$BASENAME: TEST FAIL ಠ_ಠ" | tee $BASENAME.testlog;
printf "%-32s TEST FAIL\n" "$BASENAME" | tee $BASENAME.testlog;
fi
# We do not want Make to stop -> Return 0

View File

@ -26,7 +26,7 @@ sudo kill -9 $CPID
if [ $STATUS -eq 0 ] ; then
cp $BASENAME.log $BASENAME.testlog
echo "$BASENAME: TEST OK" | tee -a $BASENAME.testlog;
printf "%-32s TEST OK\n" "$BASENAME" | tee -a $BASENAME.testlog;
else
mv $BASENAME.log $BASENAME.faillog
@ -39,7 +39,7 @@ else
cat node.err
cp $BASENAME.log $BASENAME.faillog
echo "$BASENAME: TEST FAIL ಠ_ಠ" | tee -a $BASENAME.testlog;
printf "%-32s TEST FAIL\n" "$BASENAME" | tee -a $BASENAME.testlog;
fi
# We do not want Make to stop -> Return 0