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

Tim Wiederhake twiederh at redhat.com
Tue Dec 15 16:25:11 UTC 2020


Signed-off-by: Tim Wiederhake <twiederh at redhat.com>
---
 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




More information about the libvir-list mailing list