From: Lukas Czerner <lczerner@redhat.com>
To: linux-ext4@vger.kernel.org
Cc: tytso@mit.edu, adilger@dilger.ca, Lukas Czerner <lczerner@redhat.com>
Subject: [PATCH 5/5 v2] tests: Print out list of failed tests
Date: Fri, 12 Aug 2011 18:43:00 +0200 [thread overview]
Message-ID: <1313167380-3283-5-git-send-email-lczerner@redhat.com> (raw)
In-Reply-To: <1313167380-3283-1-git-send-email-lczerner@redhat.com>
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>
---
v2: This is the actually the first version of the patch
tests/test_script.in | 10 +++++++++-
1 files changed, 9 insertions(+), 1 deletions(-)
diff --git a/tests/test_script.in b/tests/test_script.in
index cec09df..b7ac86e 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
--
1.7.4.4
next prev parent reply other threads:[~2011-08-12 16:43 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-08-12 16:42 [PATCH 1/5 v2] e2fsprogs: create open() and stat() helpers Lukas Czerner
2011-08-12 16:42 ` [PATCH 2/5 v2] e2fsprogs: Use punch hole as "discard" on regular files Lukas Czerner
2011-09-16 3:50 ` Ted Ts'o
2011-08-12 16:42 ` [PATCH 3/5 v2] configure.in: add check for linux/falloc.h header Lukas Czerner
2011-08-12 16:42 ` [PATCH 4/5 v2] e2fsck: do not attempt to discard if -n was specified Lukas Czerner
2011-09-16 3:53 ` Ted Ts'o
2011-08-12 16:43 ` Lukas Czerner [this message]
2011-09-16 3:56 ` [PATCH 5/5 v2] tests: Print out list of failed tests Ted Ts'o
2011-09-01 8:39 ` [PATCH 1/5 v2] e2fsprogs: create open() and stat() helpers Lukas Czerner
2011-09-16 3:50 ` Ted Ts'o
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1313167380-3283-5-git-send-email-lczerner@redhat.com \
--to=lczerner@redhat.com \
--cc=adilger@dilger.ca \
--cc=linux-ext4@vger.kernel.org \
--cc=tytso@mit.edu \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).