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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list




[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]