[libvirt PATCH 25/29] cpu-gather: Ignore shutdown messages from qemu

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

 



Signed-off-by: Tim Wiederhake <twiederh@xxxxxxxxxx>
---
 tests/cputestdata/cpu-gather.py | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/tests/cputestdata/cpu-gather.py b/tests/cputestdata/cpu-gather.py
index 10dbeb87cf..49c72df320 100755
--- a/tests/cputestdata/cpu-gather.py
+++ b/tests/cputestdata/cpu-gather.py
@@ -98,6 +98,8 @@ def call_qemu(qemu, qmp_cmds):
         response = json.loads(line)
         if "return" in response and not response["return"]:
             continue
+        if response.get("event") == "SHUTDOWN":
+            continue
         yield response
 
 
-- 
2.26.2




[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]

  Powered by Linux