X-Git-Url: https://git.heureux-cyclage.org/?p=lhc%2Fweb%2Fwiklou.git;a=blobdiff_plain;f=tests%2Fphan%2Fbin%2Fphan;h=cfaf9a1a0e034426bb3b5764c7c25114cefd2e20;hp=e9222a44d6be368756fa1eb14ecfd5b9793d07ca;hb=0fa5d57bc5a65ab784f778c1f619b107188e3788;hpb=f5acb9700a6ea4ac2a6c60c7ca722ea666f99a0e diff --git a/tests/phan/bin/phan b/tests/phan/bin/phan index e9222a44d6..cfaf9a1a0e 100755 --- a/tests/phan/bin/phan +++ b/tests/phan/bin/phan @@ -33,6 +33,8 @@ php7.0 $PHAN \ --output "$ROOT/tests/phan/issues/issues-${REV}" \ "${@}" +EXIT_CODE="$?" + # Re-link the latest file rm -f "${ISSUES}/latest" ln -s "${RUN}" "${ISSUES}/latest" @@ -40,6 +42,4 @@ 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