summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaan De Meyer <daan.j.demeyer@gmail.com>2024-02-19 14:35:07 +0100
committerDaan De Meyer <daan.j.demeyer@gmail.com>2024-02-19 15:19:37 +0100
commit88d4b97a24d532c1c34cbb99ac46e25f905d3884 (patch)
treee9d55fafeaf86cbd70602c0147d05d9f373bfcbc
parentMerge pull request #31386 from mrc0mmand/test-tweaks (diff)
downloadsystemd-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-xtest/test-sysusers.sh.in2
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"