]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemublocktest: Add tests for re-enabling of bitmaps after commit
authorPeter Krempa <pkrempa@redhat.com>
Tue, 17 Mar 2020 14:51:57 +0000 (15:51 +0100)
committerPeter Krempa <pkrempa@redhat.com>
Tue, 17 Mar 2020 15:32:13 +0000 (16:32 +0100)
commitcab3622119a73a54e62e5f2d7b4257da00bd4ac8
tree1fb55a3079eb19077e792350ee71d7a2df7f2b89
parent7a16318855811ac4ae55d30b77969528099fd180
qemublocktest: Add tests for re-enabling of bitmaps after commit

Some branches were not covered and thus we didn't catch that the bitmaps
are not re-enabled if nothing is merged into them. Two bitmaps are
necessary to reliably test the case due to hash table ordering.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
Tested-by: Daniel P. Berrangé <berrange@redhat.com>
tests/qemublocktestdata/bitmap/snapshots-synthetic-broken.json
tests/qemublocktestdata/bitmap/snapshots-synthetic-broken.out
tests/qemublocktestdata/bitmapblockcommit/snapshots-synthetic-broken-1-2
tests/qemublocktestdata/bitmapblockcommit/snapshots-synthetic-broken-1-3
tests/qemublocktestdata/bitmapblockcommit/snapshots-synthetic-broken-1-4
tests/qemublocktestdata/bitmapblockcommit/snapshots-synthetic-broken-1-5
tests/qemublocktestdata/bitmapblockcommit/snapshots-synthetic-broken-2-3
tests/qemublocktestdata/bitmapblockcommit/snapshots-synthetic-broken-2-4
tests/qemublocktestdata/bitmapblockcommit/snapshots-synthetic-broken-2-5