mirror of
https://github.com/BelfrySCAD/BOSL2.git
synced 2024-12-29 16:29:40 +00: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
1 changed files with 2 additions and 1 deletions
|
@ -18,8 +18,9 @@ for testscript in $INFILES ; do
|
|||
testfile="tests/test_$repname"
|
||||
if [ -f "$testfile" ] ; then
|
||||
${OPENSCAD} -o out.echo --hardwarnings --check-parameters true --check-parameter-ranges true $testfile 2>&1
|
||||
retcode=$?
|
||||
res=$(cat out.echo)
|
||||
if [ "$res" = "" ] ; then
|
||||
if [ $retcode -eq 0 ] && [ "$res" = "" ] ; then
|
||||
echo "$repname: PASS"
|
||||
else
|
||||
echo "$repname: FAIL!"
|
||||
|
|
Loading…
Reference in a new issue