]> git.ipfire.org Git - thirdparty/libvirt.git/commit
virsh: Make self-test failures noisy
authorEric Blake <eblake@redhat.com>
Tue, 12 Mar 2019 02:17:33 +0000 (21:17 -0500)
committerEric Blake <eblake@redhat.com>
Tue, 12 Mar 2019 11:37:48 +0000 (06:37 -0500)
commit23e0bf1c4eb691bdc0e5f1d6aca15002b5d09ce9
tree70383da0e9859bcffeb2b966f8d5e8e3d784316e
parentbf8c8755dc8a6d53632b90aa79ba546594714264
virsh: Make self-test failures noisy

In local testing, I accidentally introduced a self-test failure,
and spent way too much time debugging it. Make sure the testsuite
log includes some hint as to why command option validation failed.
Lone exception: allocation failure is unlikely during self-test,
and if it happens, we are better off asserting (vsh.c can do this,
even if libvirt.so cannot).

Signed-off-by: Eric Blake <eblake@redhat.com>
Reviewed-by: Erik Skultety <eskultet@redhat.com>
Acked-by: Peter Krempa <pkrempa@redhat.com>
tools/vsh.c