summaryrefslogtreecommitdiff
path: root/ctdb/tests
diff options
context:
space:
mode:
authorMartin Schwenke <martin@meltin.net>2018-11-02 16:21:26 +1100
committerAmitay Isaacs <amitay@samba.org>2018-11-06 07:16:16 +0100
commite733e4cb746c15af17f6df110c0163c565427983 (patch)
treecb24fe9154a7351853bf34b28cc7b3a949ad64de /ctdb/tests
parent6d9c89bfa3f2bbf0dcb1b33f519e40d96acc4244 (diff)
downloadsamba-e733e4cb746c15af17f6df110c0163c565427983.tar.gz
ctdb-tests: Ignore SIGPIPE during simple test cleanup
Signed-off-by: Martin Schwenke <martin@meltin.net> Reviewed-by: Amitay Isaacs <amitay@gmail.com>
Diffstat (limited to 'ctdb/tests')
-rw-r--r--ctdb/tests/scripts/integration.bash6
1 files changed, 6 insertions, 0 deletions
diff --git a/ctdb/tests/scripts/integration.bash b/ctdb/tests/scripts/integration.bash
index 0975fde33db..25363d3c194 100644
--- a/ctdb/tests/scripts/integration.bash
+++ b/ctdb/tests/scripts/integration.bash
@@ -29,6 +29,12 @@ ctdb_test_exit ()
trap - 0
+ # run_tests.sh pipes stdout into tee. If the tee process is
+ # killed then any attempt to write to stdout (e.g. echo) will
+ # result in SIGPIPE, terminating the caller. Ignore SIGPIPE to
+ # ensure that all clean-up is run.
+ trap '' PIPE
+
# Avoid making a test fail from this point onwards. The test is
# now complete.
set +e