tests/qtest: Introduce qtest_init_with_env_and_capabilities()
authorJuraj Marcin <jmarcin@redhat.com>
Tue, 7 Jan 2025 16:31:53 +0000 (17:31 +0100)
committerFabiano Rosas <farosas@suse.de>
Fri, 17 Jan 2025 14:48:43 +0000 (11:48 -0300)
commit99baa5d921e7414c83444c379510c6aad5c023a7
tree2e00af76ff00359d43b74bf7375e6fabb8351d0a
parentb4a91c5e710e42d95cca891496a6047de56aa535
tests/qtest: Introduce qtest_init_with_env_and_capabilities()

This patch adds a new version of qtest_init_with_env() that allows
specifying QMP capabilities that should be enabled during handshake.
This is useful for example if a test needs out-of-band execution of QMP
commands, it can initialize with the oob capability.

Signed-off-by: Juraj Marcin <jmarcin@redhat.com>
Reviewed-by: Peter Xu <peterx@redhat.com>
Signed-off-by: Fabiano Rosas <farosas@suse.de>
tests/qtest/libqtest.c
tests/qtest/libqtest.h