From a32fb1e33374ef7d0e480d248911721bbade5a24 Mon Sep 17 00:00:00 2001 From: Alexander Larsson Date: Wed, 21 Oct 2020 14:36:51 +0200 Subject: [PATCH] tests: Silence assert_remote_has_no_config This is meant to fail, so redirect its stderr to get less confusing test logs. --- tests/libtest.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/libtest.sh b/tests/libtest.sh index af5acc03..3680cf82 100644 --- a/tests/libtest.sh +++ b/tests/libtest.sh @@ -244,7 +244,7 @@ assert_remote_has_config () { assert_remote_has_no_config () { { { local BASH_XTRACEFD=3; } 2> /dev/null - if ostree config --repo=$FL_DIR/repo get --group 'remote "'"$1"'"' "$2" > /dev/null; then + if ostree config --repo=$FL_DIR/repo get --group 'remote "'"$1"'"' "$2" > /dev/null &> /dev/null; then echo 1>&2 "Remote '$1' unexpectedly has key '$2' at $(basename ${BASH_SOURCE[1]}):${BASH_LINENO[0]}" exit 1 fi