summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Schwenke <martin@meltin.net>2020-07-06 14:02:49 +1000
committerMartin Schwenke <martins@samba.org>2020-07-22 07:53:35 +0000
commit3ff8765d04c0fb950b7be4f9a049999aeb08223b (patch)
treee5fdb4a97a2225cf20a897a79157917436938be0
parent6436c74ebf6adcbf21abf76567c7b87e61abfaf0 (diff)
downloadsamba-3ff8765d04c0fb950b7be4f9a049999aeb08223b.tar.gz
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 <martin@meltin.net> Reviewed-by: Amitay Isaacs <amitay@gmail.com>
-rw-r--r--ctdb/tests/scripts/integration.bash2
1 files changed, 1 insertions, 1 deletions
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
}