]> git.ipfire.org Git - thirdparty/libvirt.git/commit
test: snapshot revert: always error out if VM XML is missing
authorPavel Hrdina <phrdina@redhat.com>
Thu, 11 Nov 2021 16:34:46 +0000 (17:34 +0100)
committerPavel Hrdina <phrdina@redhat.com>
Tue, 23 Nov 2021 10:41:52 +0000 (11:41 +0100)
commitca04290be32d5deb6bad01810d133190875e6c52
tree270e009b3fb055915cb365aeb220f77d2e8fdd1f
parent6c86b92f140f08b2b2717625907651cfe0fb275d
test: snapshot revert: always error out if VM XML is missing

We should have this check even if FORCE flag is used because later we
unconditionally copy the `snap->def->dom` and error out if there is no
copy created. The test driver will always save the VM XML when creating
new snapshot.

Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
Reviewed-by: Peter Krempa <pkrempa@redhat.com>
src/test/test_driver.c