mirror of
https://github.com/sinseman44/PyCNC.git
synced 2026-07-16 08:37:09 +00:00
print test status
This commit is contained in:
+3
-1
@@ -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"
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user