]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
cpu-gather: Ignore shutdown messages from qemu
authorTim Wiederhake <twiederh@redhat.com>
Tue, 15 Dec 2020 16:25:11 +0000 (17:25 +0100)
committerMichal Privoznik <mprivozn@redhat.com>
Fri, 18 Dec 2020 22:20:48 +0000 (23:20 +0100)
Signed-off-by: Tim Wiederhake <twiederh@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
tests/cputestdata/cpu-gather.py

index 10dbeb87cf001410dc1a78249e83293ab5251cf4..49c72df320167c731c884223f87008218ff592e4 100755 (executable)
@@ -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