From: Theodore Ts'o Date: Sat, 9 Apr 2005 05:26:49 +0000 (-0400) Subject: test_script.in: Make the test script driver exit with a non-zero X-Git-Tag: E2FSPROGS-1_38-WIP-0509~30 X-Git-Url: https://git.whamcloud.com/?a=commitdiff_plain;h=86a02b5d3dc1cd486ef59daed6d981060c5cb950;p=tools%2Fe2fsprogs.git test_script.in: Make the test script driver exit with a non-zero status if there are any failed tests. --- diff --git a/tests/ChangeLog b/tests/ChangeLog index 6a6d050..fad3aa3 100644 --- a/tests/ChangeLog +++ b/tests/ChangeLog @@ -1,3 +1,8 @@ +2005-04-09 Theodore Ts'o + + * test_script.in: Make the test script driver exit with a non-zero + status if there are any failed tests. + 2005-03-21 Theodore Ts'o * Release of E2fsprogs 1.37 diff --git a/tests/test_script.in b/tests/test_script.in index b8d72cc..72f6332 100644 --- a/tests/test_script.in +++ b/tests/test_script.in @@ -59,3 +59,4 @@ num_failed=`ls *.failed 2>/dev/null | wc -l` echo "$num_ok tests succeeded $num_failed tests failed" +test "$num_failed" -eq 0 || exit 1