]> git.ipfire.org Git - thirdparty/libvirt.git/commit
virt-aa-helper-test: Print errors to stderr
authorMichal Privoznik <mprivozn@redhat.com>
Tue, 10 Jun 2025 09:57:43 +0000 (11:57 +0200)
committerMichal Privoznik <mprivozn@redhat.com>
Wed, 2 Jul 2025 11:54:07 +0000 (13:54 +0200)
commit58bf3de02cf555a16bd420d7603f2a10dbe9ea6a
tree900b9322fbd7c794400183ffde2a0935c28d3ee3
parent300965f4f12261b141514354f12ca5d9995bf3ec
virt-aa-helper-test: Print errors to stderr

When a test case fails, there are two echo-s executed: the first
one either prints the error message into /dev/null (default) or
onto stdout (when the test script is executed with -d). Then, the
second one prints the error message onto stdout. While this
technically works, there's nothing ever printed onto stderr which
is usually what's captured. Worse, if some command within the
script fails, it prints something onto stderr but then looking at
meson logs it's needlessly hard to match stderr and stdout lines.

Just print error messages onto stderr.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
tests/virt-aa-helper-test