From 6100cae586b610b0c4543f3c65d329f20a0c050e Mon Sep 17 00:00:00 2001 From: Revar Desmera Date: Tue, 5 Nov 2019 17:31:58 -0800 Subject: [PATCH] OpenSCAD cannot be relied on to return an error code on assert fail. --- scripts/run_tests.sh | 10 +++++++++- version.scad | 2 +- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/scripts/run_tests.sh b/scripts/run_tests.sh index ba76f73..c435acb 100755 --- a/scripts/run_tests.sh +++ b/scripts/run_tests.sh @@ -4,7 +4,15 @@ OPENSCAD=/Applications/OpenSCAD.app/Contents/MacOS/OpenSCAD for testscript in tests/test_*.scad ; do repname="$(basename $testscript|sed 's/^test_//')" - ${OPENSCAD} -o out.echo --hardwarnings --check-parameters true --check-parameter-ranges true $testscript 2>&1 && echo "$repname: PASS" || echo -e "$repname: FAIL!\n" + ${OPENSCAD} -o out.echo --hardwarnings --check-parameters true --check-parameter-ranges true $testscript 2>&1 + res=$(cat out.echo) + if [ "$res" = "" ] ; then + echo "$repname: PASS" + else + echo "$repname: FAIL!" + cat out.echo + echo + fi rm -f out.echo done diff --git a/version.scad b/version.scad index c9f894c..cee131d 100644 --- a/version.scad +++ b/version.scad @@ -8,7 +8,7 @@ ////////////////////////////////////////////////////////////////////// -BOSL_VERSION = [2,0,3]; +BOSL_VERSION = [2,0,4]; // Section: BOSL Library Version Functions