Merge pull request #339 from thehans/patch-1

Check openscad return code in run_tests.sh
This commit is contained in:
Revar Desmera 2020-12-16 16:31:46 -08:00 committed by GitHub
commit 11c15c9aff
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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!"