CI native networking test: do not show compilation output unless the test fails
This commit is contained in:
parent
1b93e2c5cc
commit
d8604d3c0c
@ -9,7 +9,7 @@ IPADDR=fd00::302:304:506:708
|
|||||||
|
|
||||||
# Starting Contiki-NG native node
|
# Starting Contiki-NG native node
|
||||||
echo "Starting 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 &
|
sudo $CONTIKI/examples/hello-world/hello-world.native > node.log 2> node.err &
|
||||||
CPID=$!
|
CPID=$!
|
||||||
sleep 2
|
sleep 2
|
||||||
@ -30,6 +30,14 @@ if [ $STATUS -eq 0 ] ; then
|
|||||||
else
|
else
|
||||||
mv $BASENAME.log $BASENAME.faillog
|
mv $BASENAME.log $BASENAME.faillog
|
||||||
|
|
||||||
|
echo ""
|
||||||
|
echo "---- make.log"
|
||||||
|
cat make.log
|
||||||
|
|
||||||
|
echo ""
|
||||||
|
echo "---- make.err"
|
||||||
|
cat make.err
|
||||||
|
|
||||||
echo ""
|
echo ""
|
||||||
echo "---- node.log"
|
echo "---- node.log"
|
||||||
cat node.log
|
cat node.log
|
||||||
@ -42,6 +50,8 @@ else
|
|||||||
printf "%-32s TEST FAIL\n" "$BASENAME" | tee -a $BASENAME.testlog;
|
printf "%-32s TEST FAIL\n" "$BASENAME" | tee -a $BASENAME.testlog;
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
rm make.log
|
||||||
|
rm make.err
|
||||||
rm node.log
|
rm node.log
|
||||||
rm node.err
|
rm node.err
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user