From 2fa1679adb2be88cddcdc98bed325ac0ce72ef93 Mon Sep 17 00:00:00 2001 From: Lukas Czerner Date: Thu, 15 Sep 2011 23:54:49 -0400 Subject: [PATCH] tests: Print out list of failed tests Currently we need to grep, list or just search for failed tests when running 'make check' which is annoying. This commit simply prints out the list of failed test names at the end of the output. Signed-off-by: Lukas Czerner Signed-off-by: Theodore Ts'o --- tests/test_script.in | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/tests/test_script.in b/tests/test_script.in index cec09dfd..b7ac86e3 100644 --- a/tests/test_script.in +++ b/tests/test_script.in @@ -78,4 +78,12 @@ 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 +test "$num_failed" -eq 0 && exit 0 + +echo -n "Tests failed: " +for fname in $(ls *.failed); do + echo -n "${fname%%.failed} " +done +echo "" + +exit 1