]> git.ipfire.org Git - thirdparty/libvirt.git/commit
commandtest: Use virTestCompareToFile() in checkoutput()
authorMichal Privoznik <mprivozn@redhat.com>
Tue, 22 Mar 2022 12:36:38 +0000 (13:36 +0100)
committerMichal Privoznik <mprivozn@redhat.com>
Thu, 1 Dec 2022 13:22:39 +0000 (14:22 +0100)
commitf3b049e8780ca4081bf34e43dcdc6577e9aba456
treea1c97d5653fa1d937a5a3f0e49808f91a571a019
parente97b6f4bc5e6811998c957566c3b14fe11ea552f
commandtest: Use virTestCompareToFile() in checkoutput()

In the commandtest there is checkoutput() function which checks
the latest log of commandhelper (containing things like cmd line
arguments, env vars, FDs, CWD, etc.) and compares that against
expected output. Well, the way this function implements that is
effectively by open coding virTestCompareToFile() except for the
nice feature that the virTestCompareToFile() has:
VIR_TEST_OUTPUT_REGENERATE.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Jonathon Jongsma <jjongsma@redhat.com>
tests/commandtest.c