From: Tim Wiederhake Date: Tue, 15 Dec 2020 16:25:11 +0000 (+0100) Subject: cpu-gather: Ignore shutdown messages from qemu X-Git-Tag: v7.0.0-rc1~145 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=b0c966de9be7205f43407932cbb06f67d1bacad7;p=thirdparty%2Flibvirt.git cpu-gather: Ignore shutdown messages from qemu Signed-off-by: Tim Wiederhake Reviewed-by: Michal Privoznik --- 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