]> git.ipfire.org Git - thirdparty/libvirt.git/commit
testQemuDiskXMLToProps: Store all per-image data in one structure
authorPeter Krempa <pkrempa@redhat.com>
Mon, 23 Mar 2020 11:10:38 +0000 (12:10 +0100)
committerPeter Krempa <pkrempa@redhat.com>
Tue, 24 Mar 2020 13:17:47 +0000 (14:17 +0100)
commit93171b63c3a28dad06c3af6d2483d953a6f79ad2
treea693129b1e27a377c8d3b98808fec2e80027ff96
parenta83c1dc70e724b9313436c63f57ea24023fd7076
testQemuDiskXMLToProps: Store all per-image data in one structure

We had two non-syncrhonized arrays holding the individual data. This was
a lazy way to do it when I was adding new tests recently. Since it's
hard to extend with new data to test refactor the storage of test data
to use a new struct where all per-image data are kept and can be
extended easily.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
tests/qemublocktest.c