selftest: teardown the environments also on getting SIGPIPE
commitb532f24b4af8417c30b3087da44d6e386e62261c
authorStefan Metzmacher <metze@samba.org>
Thu, 10 Jul 2014 12:28:56 +0000 (10 14:28 +0200)
committerKarolin Seeger <kseeger@samba.org>
Tue, 15 Jul 2014 10:46:16 +0000 (15 12:46 +0200)
tree652fb399cb8a9fd97b5aede9285b64a3d690f1da
parentd485ebdb56ec6688569b574010b7fef7b50724bd
selftest: teardown the environments also on getting SIGPIPE

make test uses

selftest.pl | subuntu-filter.py ...

FAIL_IMMEDIATELY=1 lets subuntu-filter.py exit,
which generates SIGPIPE in selftest.pl.

We should handle this just like any other signal
and teardown all environments.

This should make the teardown process more reliable/verbose.

Pair-Programmed-With: Michael Adam <obnox@samba.org>
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Signed-off-by: Michael Adam <obnox@samba.org>
(cherry picked from commit b2803950fc439017680069813fc49255a3f0cbbf)

Bug: https://bugzilla.samba.org/show_bug.cgi?id=10696
backport autobuild/selftest fixes from master
selftest/selftest.pl