From 0167e9c53566637ce24acb8e5ef2b144c6b02942 Mon Sep 17 00:00:00 2001 From: Christian Ehrhardt Date: Thu, 26 Oct 2017 15:22:11 +0200 Subject: [PATCH] virt-aa-helper-test: only fails go to stdout by default By Default (without -d) the tests will only print Failures. So a log should follow general "no message is a good message" style. But the testfw checks always emit the skip info to stdout. Instead they should use the redirection that is controlled by -d. This avoids mesages like the following to clutter the log: Skipping FW AAVMF32 test. Could not find /usr/share/AAVMF/AAVMF32_CODE.fd Signed-off-by: Christian Ehrhardt --- tests/virt-aa-helper-test | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/virt-aa-helper-test b/tests/virt-aa-helper-test index e8376687e7..d2a557e360 100755 --- a/tests/virt-aa-helper-test +++ b/tests/virt-aa-helper-test @@ -155,7 +155,7 @@ testfw() { -e "s,,$fwpath,g" "$template_xml" > "$test_xml" testme "0" "$title" "-r -u $valid_uuid" "$test_xml" else - echo "Skipping FW $title test. Could not find $fwpath" + echo "Skipping FW $title test. Could not find $fwpath" >$output fi } -- GitLab