From: Ruediger Meier Date: Thu, 13 Mar 2014 16:40:16 +0000 (+0100) Subject: tests: return error if failures file not usable X-Git-Tag: v2.25-rc1~411^2~2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=ddd2570f6091c0e8edf9274a311a6f468e8c025d;p=thirdparty%2Futil-linux.git tests: return error if failures file not usable In past this could happen when doing make distcheck. Signed-off-by: Ruediger Meier --- diff --git a/tests/run.sh b/tests/run.sh index decea39251..7b1e4b7c7c 100755 --- a/tests/run.sh +++ b/tests/run.sh @@ -140,7 +140,7 @@ printf "%s\n" ${comps[*]} | xargs -I '{}' -P $paraller_jobs -n 1 bash -c "'{}' \"$OPTS\" || echo 1 >> $top_builddir/tests/failures" declare -a fail_file -fail_file=( $( < $top_builddir/tests/failures ) ) +fail_file=( $( < $top_builddir/tests/failures ) ) || exit 1 rm -f $top_builddir/tests/failures echo echo "---------------------------------------------------------------------"