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");
 
     $hook->cleanup();
+
+    # Restarting libvirtd broke the tck connection, so ignore the sigpipe and 
remove $tck
+    $SIG{PIPE} = 'IGNORE';
+    undef $tck;
 };
 
-- 
1.8.4.5

--
libvir-list mailing list
libvir-list@redhat.com
https://www.redhat.com/mailman/listinfo/libvir-list

Reply via email to