]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
ctdb-tests: Stop cat command failure from causing test failure
authorMartin Schwenke <martin@meltin.net>
Mon, 6 Jul 2020 04:02:49 +0000 (14:02 +1000)
committerMartin Schwenke <martins@samba.org>
Wed, 22 Jul 2020 07:53:35 +0000 (07:53 +0000)
In certain circumstance, which aren't obvious, cat(1) can fail when
attempting to write a lot of data.  This is due to something (probably
write(2)) returning EAGAIN.

Given that the -v option should only really be used for test
debugging, ignore the failure instead of spending time debugging it.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=14446
Signed-off-by: Martin Schwenke <martin@meltin.net>
Reviewed-by: Amitay Isaacs <amitay@gmail.com>
ctdb/tests/scripts/integration.bash

index 31f4387a404bdbb52f0edcceb8a53222f51f854a..39c4e8b8167353b27139f2bc062a885ec9e88757 100644 (file)
@@ -164,7 +164,7 @@ try_command_on_node ()
 
     if $verbose ; then
        echo "Output of \"$cmd\":"
-       cat "$outfile"
+       cat "$outfile" || true
     fi
 }