From 86a02b5d3dc1cd486ef59daed6d981060c5cb950 Mon Sep 17 00:00:00 2001 From: Theodore Ts'o Date: Sat, 9 Apr 2005 01:26:49 -0400 Subject: [PATCH] test_script.in: Make the test script driver exit with a non-zero status if there are any failed tests. --- tests/ChangeLog | 5 +++++ tests/test_script.in | 1 + 2 files changed, 6 insertions(+) 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 -- 1.8.3.1