]> git.ipfire.org Git - thirdparty/libvirt.git/commit
networkxml2conftest: Allow regenerating more in one run
authorMichal Privoznik <mprivozn@redhat.com>
Wed, 17 Dec 2025 12:24:06 +0000 (13:24 +0100)
committerMichal Privoznik <mprivozn@redhat.com>
Thu, 29 Jan 2026 12:38:57 +0000 (13:38 +0100)
commiteff3431dca51bdcf56829eca2a35d0a1dd395f31
treef57561b8cc79a14c86f7a06a9bd9a1c90323c667
parent30baa494549124855e5e20bc8823f87e22ef1092
networkxml2conftest: Allow regenerating more in one run

Currently, there are two calls to virTestCompareToFile() inside
of testCompareXMLToConfFiles(). If the first one fails the
control jumps directly onto the fail label and skips the second
one. This means that When regenerating test case output
(VIR_TEST_REGENERATE_OUTPUT) the test binary has to be called
twice to regenerate all the files. Suboptimal. Try harder to call
both compare helpers.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
tests/networkxml2conftest.c