]> 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)
committerKarolin Seeger <kseeger@samba.org>
Thu, 6 Aug 2020 13:32:39 +0000 (13:32 +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>
(cherry picked from commit 3ff8765d04c0fb950b7be4f9a049999aeb08223b)

ctdb/tests/scripts/integration.bash

index 51e9c7cb82216775c801e36aa4a7ca1c82c9deaa..495e271d53bf3851863eb599489ff7a2c7981960 100644 (file)
@@ -157,7 +157,7 @@ try_command_on_node ()
 
     if $verbose ; then
        echo "Output of \"$cmd\":"
-       cat "$outfile"
+       cat "$outfile" || true
     fi
 }