]> git.ipfire.org Git - thirdparty/e2fsprogs.git/commitdiff
tests: Print out list of failed tests
authorLukas Czerner <lczerner@redhat.com>
Fri, 16 Sep 2011 03:54:49 +0000 (23:54 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Fri, 16 Sep 2011 03:54:49 +0000 (23:54 -0400)
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 <lczerner@redhat.com>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
tests/test_script.in

index cec09dfd18bc87bdf0f47c825e70e42a86511fd9..b7ac86e3df6081b56a4c57aa0783292dd0a10839 100644 (file)
@@ -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