From b6d7377ef722dac27ba43824f90694ea33bc2cbd Mon Sep 17 00:00:00 2001 From: Maciej Slodczyk Date: Wed, 13 Jun 2018 17:45:48 +0200 Subject: [PATCH] testsuite: supress stderr messages from subcommands during tests Change-Id: I92285b5c8f4433db5157acccf4b245ac99d46592 --- tests/dlog_test.in | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/dlog_test.in b/tests/dlog_test.in index 032722e..899a489 100644 --- a/tests/dlog_test.in +++ b/tests/dlog_test.in @@ -36,6 +36,9 @@ ok(){ LOG_DETAILS= } +# supress stderr messages from subcommands +exec 2> /dev/null + if [ $# -ne 1 ]; then echo "usage: $0 pipe|logger" exit 1 -- 2.7.4