]> git.ipfire.org Git - thirdparty/libvirt.git/commit
tests: Make qemuAgent single sync
authorMichal Privoznik <mprivozn@redhat.com>
Mon, 7 Nov 2022 17:42:32 +0000 (18:42 +0100)
committerMichal Privoznik <mprivozn@redhat.com>
Tue, 8 Nov 2022 11:10:50 +0000 (12:10 +0100)
commitbb5bc36792068f3811a49f0cd243b5418e872212
tree43a4a53d43be70509955b0f6b4a4a6870022cda5
parentb697b702aca77a5bf98cbee20a2c8c0c953c8816
tests: Make qemuAgent single sync

The qemuAgent has option to issue guest-sync command before each
intended command or issue the sync commend just once, right after
the socket is opened and before the first intended command is
issued. The latter is referred to as single sync agent and is
enabled by VSERPORT_CHANGED event which allows us to detect
when the agent (dis-)connects in the guest.

Now, every QEMU that we support (4.2.0 or newer) has the event
and thus will use single sync agent. Therefore, adjust
qemuagenttest to make it test what's used in the real world,
rather than old approach.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
tests/qemuagenttest.c
tests/qemumonitortestutils.c