From: Rico Tzschichholz Date: Wed, 5 Feb 2020 07:32:53 +0000 (+0100) Subject: testrunner: Invalid tests and therefore expected failures must return 1 X-Git-Tag: 0.47.91~10 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=db50076daacc27a5d2376c5c549ba20a79e03e04;p=thirdparty%2Fvala.git testrunner: Invalid tests and therefore expected failures must return 1 --- diff --git a/tests/testrunner.sh b/tests/testrunner.sh index e8e07ead3..bb061af86 100755 --- a/tests/testrunner.sh +++ b/tests/testrunner.sh @@ -115,7 +115,11 @@ function sourceend() { if [ -n "$testpath" ]; then if [ $INVALIDCODE -eq 1 ]; then PACKAGEFLAGS=$([ -z "$PACKAGES" ] || echo $PACKAGES | xargs -n 1 echo -n " --pkg") - echo "! $VALAC $VALAFLAGS $PACKAGEFLAGS -C $SOURCEFILE" > check + echo '' > prepare + echo "$VALAC $VALAFLAGS $PACKAGEFLAGS -C $SOURCEFILE" > check + echo "RET=\$?" >> check + echo "if [ \$RET -ne 1 ]; then exit 1; fi" >> check + echo "exit 0" >> check elif [ $GIRTEST -eq 1 ]; then if [ $PART -eq 1 ]; then echo " " >> $SOURCEFILE