[PATCH kvm-unit-tests v2 12/12] run_tests: suppress stderr

Radim Krčmář
2015-12-17T17:54:31Z

log it instead to keep the output clear.

Signed-off-by: Radim Krčmář <rkrcmar@redhat.com>
---
v2: new (v1 did this by catching all output in a variable)

run_tests.sh | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/run_tests.sh b/run_tests.sh
index 62c106a0b693..4c8c20a16eac 100755
--- a/run_tests.sh
+++ b/run_tests.sh
@@ -29,7 +29,7 @@ EOF
}

__run() { ./$TEST_DIR-run "${@}"; }
-__eval_log() { eval "${@}" >> test.log; }
+__eval_log() { eval "${@}" >> test.log 2>&1; }
__echo_last_log() { cat test.log; } # XXX: ignores the 'last' bit

echo > test.log
--
2.6.4