Whamcloud - gitweb
git://git.whamcloud.com
/
tools
/
e2fsprogs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d8fe566
)
tests: Add option to print diff output of failed tests
author
Lukas Czerner
<lczerner@redhat.com>
Thu, 2 Sep 2021 10:58:52 +0000
(12:58 +0200)
committer
Theodore Ts'o
<tytso@mit.edu>
Fri, 1 Oct 2021 01:56:40 +0000
(21:56 -0400)
Add variable $PRINT_FAILED which when set will print the diff output of
a failed test.
Signed-off-by: Lukas Czerner <lczerner@redhat.com>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
tests/test_one.in
patch
|
blob
|
history
diff --git
a/tests/test_one.in
b/tests/test_one.in
index
5d7607a
..
78499ad
100644
(file)
--- 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