]> git.ipfire.org Git - thirdparty/libvirt.git/commit
virshtest: Allow to test failure of commands
authorPeter Krempa <pkrempa@redhat.com>
Tue, 12 Mar 2024 16:15:39 +0000 (17:15 +0100)
committerPeter Krempa <pkrempa@redhat.com>
Tue, 2 Apr 2024 12:24:30 +0000 (14:24 +0200)
commit99392689cbff20b6cb5983b9bc66f35b2faebf01
tree0390e72237b07bf9f6d5a3bdde9a698e2adab82f
parent86bf707838455a71cc5b980732878f046b26e704
virshtest: Allow to test failure of commands

Modify the test code so that if virsh fails both 'stdout' and 'stderr'
are captured and compared against the output and also the return value
is checked by appending it to the output.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
tests/virshtest.c