]> git.ipfire.org Git - thirdparty/libvirt.git/commit
snapshot: Refactor snapshotxml2xml test
authorEric Blake <eblake@redhat.com>
Mon, 15 Apr 2019 19:49:30 +0000 (14:49 -0500)
committerEric Blake <eblake@redhat.com>
Wed, 17 Apr 2019 02:02:21 +0000 (21:02 -0500)
commita10c6b300e9fb20da1f6a2a5e50084b046ebe7cf
treeb619f2c4b883ae6773eb343229eac3287c9815a1
parent84a5e89b31919e73a12db7162595db6325c38fe5
snapshot: Refactor snapshotxml2xml test

Upcoming changes want to separate out a post-parse massaging of
snapshots separate from parsing the XML, so as not to be dependent on
filtering out an ever-changing timestamp from the testsuite. Along the
way, this means we will want to add yet another conditional to the
snapshot xml2xml tests on whether to perform post-processing steps to
canned values. This will be easier to read if we consolidate all the
decisions into a flags variable, instead of adding yet another
boolean.

While at it, drop the redundant inout test of "noparent" (once is
enough).

Signed-off-by: Eric Blake <eblake@redhat.com>
Reviewed-by: Cole Robinson <crobinso@redhat.com>
tests/domainsnapshotxml2xmltest.c