mirror of
https://github.com/revarbat/BOSL2.git
synced 2025-01-16 21:58:27 +01:00
Check openscad return code in run_tests.sh
I found that even though my openscad was crashing on tests_hull.scad, this script reported that it had passed. This change saves the exit code of the openscad command, and checks that it is 0 (success).
This commit is contained in:
parent
03823f990c
commit
d287dfe9f1
@ -18,8 +18,9 @@ for testscript in $INFILES ; do
|
|||||||
testfile="tests/test_$repname"
|
testfile="tests/test_$repname"
|
||||||
if [ -f "$testfile" ] ; then
|
if [ -f "$testfile" ] ; then
|
||||||
${OPENSCAD} -o out.echo --hardwarnings --check-parameters true --check-parameter-ranges true $testfile 2>&1
|
${OPENSCAD} -o out.echo --hardwarnings --check-parameters true --check-parameter-ranges true $testfile 2>&1
|
||||||
|
retcode=$?
|
||||||
res=$(cat out.echo)
|
res=$(cat out.echo)
|
||||||
if [ "$res" = "" ] ; then
|
if [ $retcode -eq 0 ] && [ "$res" = "" ] ; then
|
||||||
echo "$repname: PASS"
|
echo "$repname: PASS"
|
||||||
else
|
else
|
||||||
echo "$repname: FAIL!"
|
echo "$repname: FAIL!"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user