From c9d7e489c880999285ec8db1198fcf93c71afcac Mon Sep 17 00:00:00 2001 From: Martin Schwenke Date: Mon, 6 Jul 2020 14:02:49 +1000 Subject: [PATCH] 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 (cherry picked from commit 3ff8765d04c0fb950b7be4f9a049999aeb08223b) --- ctdb/tests/scripts/integration.bash | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 } -- 2.27.0