]> git.ipfire.org Git - thirdparty/libvirt.git/commit
virsh: Add 'echo --err' option
authorEric Blake <eblake@redhat.com>
Sun, 24 Mar 2019 00:02:13 +0000 (19:02 -0500)
committerEric Blake <eblake@redhat.com>
Mon, 25 Mar 2019 14:02:02 +0000 (09:02 -0500)
commit2efb42e9ac22b3cd226c72c6b8324c31cbdf37ba
tree2370d50ecde3e4c3f683975d9660d0b00b047998
parent4e650259f92a72e351e4e1d4da109530042fb133
virsh: Add 'echo --err' option

Since test:///default resets state on every connection, writing a test
that covers a sequence of commands must be done from a single
session. But if the test wants to exercise particular failure modes as
well as successes, it can be nice to leave witnesses in the stderr
stream immediately before and after the spot where the expected error
should be, to ensure the rest of the script is not causing errors.

Do this by adding an --err option.

Signed-off-by: Eric Blake <eblake@redhat.com>
Acked-by: Michal Privoznik <mprivozn@redhat.com>
tools/virsh.pod
tools/vsh.c