print test status

This commit is contained in:
Nikolay Khabarov
2017-05-14 03:21:16 +03:00
parent 1a7670357c
commit e5b61527ca
+3 -1
View File
@@ -12,11 +12,13 @@ echo '* light up on pullup, set, and DMA test events. *'
echo '**********************************************************************' echo '**********************************************************************'
echo '---------------------------Unit tests---------------------------------' echo '---------------------------Unit tests---------------------------------'
python -m unittest discover "$@" --pattern="test_*.py" python -m unittest discover "$@" --pattern="test_*.py"
echo '-----------------------Integration tests------------------------------' echo '-------------------------Integration tests----------------------------'
res="$(pycnc tests/rects.gcode 2>&1)" res="$(pycnc tests/rects.gcode 2>&1)"
res="$res$(pycnc tests/test_parser.gcode 2>&1)" res="$res$(pycnc tests/test_parser.gcode 2>&1)"
if echo "$res" | grep -q -i error; then if echo "$res" | grep -q -i error; then
echo "FAILED"
echo "$res" echo "$res"
exit 1 exit 1
fi fi
echo "OK"