From: Martin Schwenke Date: Mon, 6 Jul 2020 04:02:49 +0000 (+1000) Subject: ctdb-tests: Stop cat command failure from causing test failure X-Git-Tag: talloc-2.3.2~1042 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=5707781ccf682d95a5a05a7c3e00a43003dbe62e;p=thirdparty%2Fsamba.git ctdb-tests: Stop cat command failure from causing test failure 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 Autobuild-User(master): Amitay Isaacs Autobuild-Date(master): Wed Jul 22 04:10:47 UTC 2020 on sn-devel-184 --- diff --git a/ctdb/tests/scripts/integration.bash b/ctdb/tests/scripts/integration.bash index 9b297313c8b..cff2903b339 100644 --- a/ctdb/tests/scripts/integration.bash +++ b/ctdb/tests/scripts/integration.bash @@ -184,7 +184,7 @@ try_command_on_node () if $verbose ; then echo "Output of \"$cmd\":" - cat "$outfile" + cat "$outfile" || true fi }