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@xxxxxxxxx> > --- > src/test/test_driver.c | 63 ++++++++++++++++++++++++++++++++++++++++++ > tests/virshtest.c | 11 ++++++++ > 2 files changed, 74 insertions(+) Reviewed-by: Michal Privoznik <mprivozn@xxxxxxxxxx> and pushed. Michal