]> 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)
committerAmitay Isaacs <amitay@samba.org>
Wed, 22 Jul 2020 04:10:47 +0000 (04:10 +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>
Autobuild-User(master): Amitay Isaacs <amitay@samba.org>
Autobuild-Date(master): Wed Jul 22 04:10:47 UTC 2020 on sn-devel-184

ctdb/tests/scripts/integration.bash

index 9b297313c8b985cf95a9425abc950c32a36e3d22..cff2903b339abf3202cf87e44d65666c01c172f6 100644 (file)
@@ -184,7 +184,7 @@ try_command_on_node ()
 
     if $verbose ; then
        echo "Output of \"$cmd\":"
-       cat "$outfile"
+       cat "$outfile" || true
     fi
 }