linux-ext4.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] tests: Add option to print diff output of failed tests
@ 2021-09-02 10:58 Lukas Czerner
  2021-10-01  1:57 ` Theodore Ts'o
  0 siblings, 1 reply; 2+ messages in thread
From: Lukas Czerner @ 2021-09-02 10:58 UTC (permalink / raw)
  To: tytso; +Cc: linux-ext4

Add variable $PRINT_FAILED which when set will print the diff output of
a failed test.

Signed-off-by: Lukas Czerner <lczerner@redhat.com>
---
 tests/test_one.in | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/tests/test_one.in b/tests/test_one.in
index 5d7607ad..78499ad0 100644
--- a/tests/test_one.in
+++ b/tests/test_one.in
@@ -82,6 +82,10 @@ if [ $elapsed -gt 60 -a ! -f $test_dir/is_slow_test ]; then
 	echo "$test_name:  consider adding $test_dir/is_slow_test"
 fi
 
+if [ -n "$PRINT_FAILED" -a -f $test_name.failed ] ; then
+	cat $test_name.failed
+fi
+
 if [ "$SKIP_UNLINK" != "true" ] ; then
 	rm -f $TMPFILE
 fi
-- 
2.31.1


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] tests: Add option to print diff output of failed tests
  2021-09-02 10:58 [PATCH] tests: Add option to print diff output of failed tests Lukas Czerner
@ 2021-10-01  1:57 ` Theodore Ts'o
  0 siblings, 0 replies; 2+ messages in thread
From: Theodore Ts'o @ 2021-10-01  1:57 UTC (permalink / raw)
  To: Lukas Czerner; +Cc: Theodore Ts'o, linux-ext4

On Thu, 2 Sep 2021 12:58:52 +0200, Lukas Czerner wrote:
> Add variable $PRINT_FAILED which when set will print the diff output of
> a failed test.
> 
> 

Applied, thanks!

[1/1] tests: Add option to print diff output of failed tests
      commit: e99e05864464001864b5b17eee2e9a309a7878a9

Best regards,
-- 
Theodore Ts'o <tytso@mit.edu>

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-10-01  1:58 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-09-02 10:58 [PATCH] tests: Add option to print diff output of failed tests Lukas Czerner
2021-10-01  1:57 ` Theodore Ts'o

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).