]> git.ipfire.org Git - thirdparty/libvirt.git/commit
snapshot: Add tests of virsh -c test:///default snapshot*
authorEric Blake <eblake@redhat.com>
Fri, 22 Mar 2019 22:23:09 +0000 (17:23 -0500)
committerEric Blake <eblake@redhat.com>
Mon, 25 Mar 2019 14:24:53 +0000 (09:24 -0500)
commit280a2b41e6e848b1cc4f969d1e077f2a35f832f9
treea0b61bd548c6a7877527ec5d97a0c2c425147b5f
parent2efb42e9ac22b3cd226c72c6b8324c31cbdf37ba
snapshot: Add tests of virsh -c test:///default snapshot*

Had this been in place earlier, I would have avoided the bugs in
commit 0baf6945 and 55c2ab3e. Writing the test required me to extend
the power of virsh - creating enough snapshots to cause fanout
requires enough input in a single session that adding comments and
markers makes it easier to check that output is correct. It's still a
bit odd that with test:///default, reverting to a snapshot changes the
domain from running to paused (possibly a bug in how the test driver
copied from the qemu driver) - but the important part is that the test
is reproducible, and any future tweaks we make to snapshot code have
less chance of breaking successful command sequences.

Signed-off-by: Eric Blake <eblake@redhat.com>
Acked-by: Michal Privoznik <mprivozn@redhat.com>
tests/Makefile.am
tests/virsh-snapshot [new file with mode: 0755]