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 '---------------------------Unit tests---------------------------------'
|
||||
python -m unittest discover "$@" --pattern="test_*.py"
|
||||
echo '-----------------------Integration tests------------------------------'
|
||||
echo '-------------------------Integration tests----------------------------'
|
||||
res="$(pycnc tests/rects.gcode 2>&1)"
|
||||
res="$res$(pycnc tests/test_parser.gcode 2>&1)"
|
||||
if echo "$res" | grep -q -i error; then
|
||||
echo "FAILED"
|
||||
echo "$res"
|
||||
exit 1
|
||||
fi
|
||||
echo "OK"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user