tests: Silence assert_remote_has_no_config

This is meant to fail, so redirect its stderr to get less confusing test
logs.
This commit is contained in:
Alexander Larsson
2020-10-21 14:36:51 +02:00
committed by Alexander Larsson
parent 67d3443999
commit a32fb1e333

View File

@@ -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