From: Daan De Meyer Date: Mon, 19 Feb 2024 13:35:07 +0000 (+0100) Subject: Set SYSTEMD_LOG_LEVEL=info explicitly in test-sysusers X-Git-Tag: v256-rc1~815 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=88d4b97a24d532c1c34cbb99ac46e25f905d3884;p=thirdparty%2Fsystemd.git Set SYSTEMD_LOG_LEVEL=info explicitly in test-sysusers If we're looking for output on stderr, let's make sure it's not littered with debug logs if SYSTEMD_LOG_LEVEL=debug. --- diff --git a/test/test-sysusers.sh.in b/test/test-sysusers.sh.in index a66e33be278..9af253f6c72 100755 --- a/test/test-sysusers.sh.in +++ b/test/test-sysusers.sh.in @@ -166,7 +166,7 @@ for f in $(find "$SOURCE"/unhappy-*.input | sort -V); do echo "*** Running test $f" prepare_testdir "${f%.input}" cp "$f" "$TESTDIR/usr/lib/sysusers.d/test.conf" - $SYSUSERS --root="$TESTDIR" 2>&1 | tail -n1 | sed -r 's/^[^:]+:[^:]+://' >"$TESTDIR/err" + SYSTEMD_LOG_LEVEL=info $SYSUSERS --root="$TESTDIR" 2>&1 | tail -n1 | sed -r 's/^[^:]+:[^:]+://' >"$TESTDIR/err" if ! diff -u "$TESTDIR/err" "${f%.*}.expected-err"; then echo >&2 "**** Unexpected error output for $f" cat >&2 "$TESTDIR/err"