CI script tests: homogenize logs
This commit is contained in:
parent
295a0c6d63
commit
45ef10ff64
@ -38,7 +38,7 @@ rm COOJA.testlog
|
|||||||
rm COOJA.log
|
rm COOJA.log
|
||||||
|
|
||||||
if [ $STATUS -eq 0 ] ; then
|
if [ $STATUS -eq 0 ] ; then
|
||||||
echo "$BASENAME: TEST OK" | tee $BASENAME.testlog;
|
printf "%-32s TEST OK\n" "$BASENAME" | tee $BASENAME.testlog;
|
||||||
else
|
else
|
||||||
# Verbose output when using CI
|
# Verbose output when using CI
|
||||||
if [ "$CI" = "true" ]; then
|
if [ "$CI" = "true" ]; then
|
||||||
@ -49,7 +49,7 @@ else
|
|||||||
echo "==== Check $BASENAME.coojalog, $BASENAME.tunsliplog, and $BASENAME.scriptlog for details ====";
|
echo "==== Check $BASENAME.coojalog, $BASENAME.tunsliplog, and $BASENAME.scriptlog for details ====";
|
||||||
fi;
|
fi;
|
||||||
|
|
||||||
echo "$BASENAME: TEST FAIL ಠ_ಠ" | tee $BASENAME.testlog;
|
printf "%-32s TEST FAIL\n" "$BASENAME" | tee $BASENAME.testlog;
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# We do not want Make to stop -> Return 0
|
# We do not want Make to stop -> Return 0
|
||||||
|
@ -26,7 +26,7 @@ sudo kill -9 $CPID
|
|||||||
|
|
||||||
if [ $STATUS -eq 0 ] ; then
|
if [ $STATUS -eq 0 ] ; then
|
||||||
cp $BASENAME.log $BASENAME.testlog
|
cp $BASENAME.log $BASENAME.testlog
|
||||||
echo "$BASENAME: TEST OK" | tee -a $BASENAME.testlog;
|
printf "%-32s TEST OK\n" "$BASENAME" | tee -a $BASENAME.testlog;
|
||||||
else
|
else
|
||||||
mv $BASENAME.log $BASENAME.faillog
|
mv $BASENAME.log $BASENAME.faillog
|
||||||
|
|
||||||
@ -39,7 +39,7 @@ else
|
|||||||
cat node.err
|
cat node.err
|
||||||
|
|
||||||
cp $BASENAME.log $BASENAME.faillog
|
cp $BASENAME.log $BASENAME.faillog
|
||||||
echo "$BASENAME: TEST FAIL ಠ_ಠ" | tee -a $BASENAME.testlog;
|
printf "%-32s TEST FAIL\n" "$BASENAME" | tee -a $BASENAME.testlog;
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# We do not want Make to stop -> Return 0
|
# We do not want Make to stop -> Return 0
|
||||||
|
Loading…
Reference in New Issue
Block a user