[PATCH] test_driver: Implement virDomainGetControlInfo and add test

Michal Prívozník mprivozn at redhat.com
Mon Jul 19 09:42:56 UTC 2021


On 7/13/21 2:21 PM, Luke Yue wrote:
> As test driver won't have real background job running, in order to get
> all possible states, the time is used here to decide which state to be
> returned. The default time will get `ok` as return value.
> 
> Note that using `virsh domtime fc4 200` won't take effect for the test
> driver, to get other states, you have to enter virsh interactive
> terminal and set time.
> 
> Signed-off-by: Luke Yue <lukedyue at gmail.com>
> ---
>  src/test/test_driver.c | 63 ++++++++++++++++++++++++++++++++++++++++++
>  tests/virshtest.c      | 11 ++++++++
>  2 files changed, 74 insertions(+)

Reviewed-by: Michal Privoznik <mprivozn at redhat.com>

and pushed.

Michal




More information about the libvir-list mailing list