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~1022 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3ff8765d04c0fb950b7be4f9a049999aeb08223b;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 Reviewed-by: Amitay Isaacs --- diff --git a/ctdb/tests/scripts/integration.bash b/ctdb/tests/scripts/integration.bash index 31f4387a404..39c4e8b8167 100644 --- a/ctdb/tests/scripts/integration.bash +++ b/ctdb/tests/scripts/integration.bash @@ -164,7 +164,7 @@ try_command_on_node () if $verbose ; then echo "Output of \"$cmd\":" - cat "$outfile" + cat "$outfile" || true fi }