mirror of
https://github.com/revarbat/BOSL2.git
synced 2025-08-13 21:54:31 +02:00
Merge pull request #339 from thehans/patch-1
Check openscad return code in run_tests.sh
This commit is contained in:
@@ -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!"
|
||||
|
Reference in New Issue
Block a user