summaryrefslogtreecommitdiffstats
path: root/tests/shell
diff options
context:
space:
mode:
authorThomas Haller <thaller@redhat.com>2023-09-08 00:07:18 +0200
committerFlorian Westphal <fw@strlen.de>2023-09-08 11:50:41 +0200
commit9dbd0f2e38ca7206d779c4e44e01100684aacb4e (patch)
treec1288e804ad483f77fa9f5d459efa56f3cb32235 /tests/shell
parent93ee51b66a6c6b2678d19637f29193f22b7181d4 (diff)
tests/shell: don't redirect error/warning messages to stderr
Writing some messages to stderr and some to stdout is not helpful. Once they are written to separate streams, it's hard to be sure about their relative order. Use grep to filter messages. Also, next we will redirect the entire output also to a file. There the output is also not split in two files. Signed-off-by: Thomas Haller <thaller@redhat.com> Signed-off-by: Florian Westphal <fw@strlen.de>
Diffstat (limited to 'tests/shell')
-rwxr-xr-xtests/shell/run-tests.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/shell/run-tests.sh b/tests/shell/run-tests.sh
index 4f0df321..e4efbb2d 100755
--- a/tests/shell/run-tests.sh
+++ b/tests/shell/run-tests.sh
@@ -16,9 +16,9 @@ _msg() {
shift
if [ "$level" = E ] ; then
- printf '%s\n' "$RED$level$RESET: $*" >&2
+ printf '%s\n' "$RED$level$RESET: $*"
elif [ "$level" = W ] ; then
- printf '%s\n' "$YELLOW$level$RESET: $*" >&2
+ printf '%s\n' "$YELLOW$level$RESET: $*"
else
printf '%s\n' "$level: $*"
fi