diff options
author | Daan De Meyer <daan.j.demeyer@gmail.com> | 2024-02-19 14:35:07 +0100 |
---|---|---|
committer | Daan De Meyer <daan.j.demeyer@gmail.com> | 2024-02-19 15:19:37 +0100 |
commit | 88d4b97a24d532c1c34cbb99ac46e25f905d3884 (patch) | |
tree | e9d55fafeaf86cbd70602c0147d05d9f373bfcbc | |
parent | Merge pull request #31386 from mrc0mmand/test-tweaks (diff) | |
download | systemd-88d4b97a24d532c1c34cbb99ac46e25f905d3884.tar.xz systemd-88d4b97a24d532c1c34cbb99ac46e25f905d3884.zip |
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.
-rwxr-xr-x | test/test-sysusers.sh.in | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/test-sysusers.sh.in b/test/test-sysusers.sh.in index a66e33be27..9af253f6c7 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" |