[libvirt] [PATCH tck 1/5] hooks/051-daemon-hook: Return 0 after connection reset

Mike Latimer mlatimer at suse.com
Mon Jan 26 22:06:49 UTC 2015

Despite running all subtests successfully, hooks/051-daemon-hook.t ends
with a return code of 141. This is due to the connection to tck not being
cleaned up properly after libvirtd is restarted in the middle of the test.

Ignoring the SIGPIPE and specifically undefining $tck allows the test to
complete with a return code of 0 (which is helpful when running the full
libvirt-tck kit).

 scripts/hooks/051-daemon-hook.t | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/scripts/hooks/051-daemon-hook.t b/scripts/hooks/051-daemon-hook.t
index 165cf4e..da46edf 100644
--- a/scripts/hooks/051-daemon-hook.t
+++ b/scripts/hooks/051-daemon-hook.t
@@ -163,5 +163,9 @@ SKIP: {
     ok(`service libvirtd status` =~ /running/, "libvirtd is running");
+    # Restarting libvirtd broke the tck connection, so ignore the sigpipe and remove $tck
+    $SIG{PIPE} = 'IGNORE';
+    undef $tck;

More information about the libvir-list mailing list