diff options
author | Michael Adam <obnox@samba.org> | 2013-11-22 00:35:35 +0100 |
---|---|---|
committer | Martin Schwenke <martins@samba.org> | 2013-11-28 07:31:12 +0100 |
commit | 90f79bf0737e8ad900d7cbf68edad977df55b4b6 (patch) | |
tree | 38214d6a68147987ba52840aa002ebb182160843 /ctdb/tests/scripts | |
parent | e01a7157f3aae4e1f2e0f17e748e312fc5a3695a (diff) | |
download | samba-90f79bf0737e8ad900d7cbf68edad977df55b4b6.tar.gz samba-90f79bf0737e8ad900d7cbf68edad977df55b4b6.tar.xz samba-90f79bf0737e8ad900d7cbf68edad977df55b4b6.zip |
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 <obnox@samba.org>
Reviewed-by: Martin Schwenke <martin@meltin.net>
Reviewed-by: Amitay Isaacs <amitay@gmail.com>
Diffstat (limited to 'ctdb/tests/scripts')
-rw-r--r-- | ctdb/tests/scripts/unit.sh | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/ctdb/tests/scripts/unit.sh b/ctdb/tests/scripts/unit.sh index f423db19a2..afa0c1f538 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 "--" |