X-Git-Url: https://git.saurik.com/apt.git/blobdiff_plain/682a3bf727cd79a66eeb335c4c6593472ce11907..1c6cedc489b5eaeed1b7fdb845eca06bc1fccd4f:/test/integration/run-tests diff --git a/test/integration/run-tests b/test/integration/run-tests index 292986822..18474b20f 100755 --- a/test/integration/run-tests +++ b/test/integration/run-tests @@ -17,6 +17,10 @@ elif [ -z "${MSGLEVEL}" ]; then export MSGLEVEL=2 fi +if [ -z "$MSGLEVEL" ]; then + MSGLEVEL=5 +fi + for testcase in $(run-parts --list $DIR | grep '/test-'); do if [ "$MSGLEVEL" -le 2 ]; then echo -n "${CTEST}Testcase ${CHIGH}$(basename ${testcase})${CRESET}: " @@ -33,4 +37,5 @@ for testcase in $(run-parts --list $DIR | grep '/test-'); do done echo "failures: $FAIL" -exit $FAIL +# ensure we don't overflow +exit $((FAIL <= 255 ? FAIL : 255))