From: Michael Adam Date: Thu, 21 Nov 2013 23:35:35 +0000 (+0100) Subject: ctdb:tests: ignore SIGPIPE in unit tests X-Git-Tag: tevent-0.9.20~130 X-Git-Url: http://git.samba.org/samba.git/?p=vlendec%2Fsamba-autobuild%2F.git;a=commitdiff_plain;h=90f79bf0737e8ad900d7cbf68edad977df55b4b6 ctdb:tests: ignore SIGPIPE in unit tests This makes scripts called in the unit tests behave like when called from ctdbd which ignodes SIGPIPE. This also makes the scrips behave the same when called from "make autotest" directly and via autobuild (python). Signed-off-by: Michael Adam Reviewed-by: Martin Schwenke Reviewed-by: Amitay Isaacs --- diff --git a/ctdb/tests/scripts/unit.sh b/ctdb/tests/scripts/unit.sh index f423db19a2e..afa0c1f538d 100644 --- a/ctdb/tests/scripts/unit.sh +++ b/ctdb/tests/scripts/unit.sh @@ -4,6 +4,8 @@ # Common variables and functions for CTDB unit tests. +trap -- '' PIPE + # Set the required result for a test. # - Argument 1 is exit code. # - Argument 2, if present is the required test output but "--"