From: Serge Hallyn Date: Sun, 7 Nov 2021 23:56:31 +0000 (-0600) Subject: run_some: exit error if there were failed tests X-Git-Tag: v4.11~12^2~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4758641b1ddebbc60ebaa91b5760728cb8cfb189;p=thirdparty%2Fshadow.git run_some: exit error if there were failed tests Signed-off-by: Serge Hallyn --- diff --git a/tests/run_some b/tests/run_some index 2f8e58463..c2ed2b775 100755 --- a/tests/run_some +++ b/tests/run_some @@ -32,6 +32,8 @@ run_test() [ -f /etc/group.lock ] && echo $1 /etc/group.lock || true [ -f /etc/shadow.lock ] && echo $1 /etc/shadow.lock || true [ -f /etc/gshadow.lock ] && echo $1 /etc/gshadow.lock || true + [ -f /etc/gshadow.lock ] && echo $1 /etc/gshadow.lock || true + rm -rf /tmp/test-uidmap if [ "$(stat -c"%G" /etc/shadow)" != "shadow" ] then echo $1 @@ -137,4 +139,5 @@ if [ "$failed" != 0 ] then echo "the following tests failed:" echo "$failed_tests" + exit 1 fi