CI native networking test: do not show compilation output unless the test fails

This commit is contained in:
Simon Duquennoy 2017-11-17 11:38:33 -08:00
parent 1b93e2c5cc
commit d8604d3c0c

View File

@ -9,7 +9,7 @@ IPADDR=fd00::302:304:506:708
# Starting Contiki-NG native node
echo "Starting native node"
make -C $CONTIKI/examples/hello-world
make -C $CONTIKI/examples/hello-world > make.log 2> make.err
sudo $CONTIKI/examples/hello-world/hello-world.native > node.log 2> node.err &
CPID=$!
sleep 2
@ -30,6 +30,14 @@ if [ $STATUS -eq 0 ] ; then
else
mv $BASENAME.log $BASENAME.faillog
echo ""
echo "---- make.log"
cat make.log
echo ""
echo "---- make.err"
cat make.err
echo ""
echo "---- node.log"
cat node.log
@ -42,6 +50,8 @@ else
printf "%-32s TEST FAIL\n" "$BASENAME" | tee -a $BASENAME.testlog;
fi
rm make.log
rm make.err
rm node.log
rm node.err