X-Git-Url: https://git.heureux-cyclage.org/?p=lhc%2Fweb%2Fwiklou.git;a=blobdiff_plain;f=tests%2Fphan%2Fbin%2Fphan;h=cfaf9a1a0e034426bb3b5764c7c25114cefd2e20;hp=07caee6a59a28dc9772c84da0686ecdb38f9f1ba;hb=0fa5d57bc5a65ab784f778c1f619b107188e3788;hpb=f5b4bd19b2719e039a8b6a9ec35f88c1385abca0 diff --git a/tests/phan/bin/phan b/tests/phan/bin/phan index 07caee6a59..cfaf9a1a0e 100755 --- a/tests/phan/bin/phan +++ b/tests/phan/bin/phan @@ -31,15 +31,15 @@ php7.0 $PHAN \ --project-root-directory "$ROOT" \ --config-file "$ROOT/tests/phan/config.php" \ --output "$ROOT/tests/phan/issues/issues-${REV}" \ - -j 4 + "${@}" -# Re-link the latest directory +EXIT_CODE="$?" + +# Re-link the latest file rm -f "${ISSUES}/latest" ln -s "${RUN}" "${ISSUES}/latest" # Output any issues that were found cat "${RUN}" -if [ $(wc -l < ${RUN}) -ne 0 ]; then - exit 1 -fi +exit $EXIT_CODE