TEST-21-DFUZZER: suppress debugging logs from homed, nsresourced, and userdbd

This commit is contained in:
Yu Watanabe
2025-07-26 23:19:50 +09:00
parent 2487f72bdc
commit 69865ca697

View File

@@ -181,6 +181,19 @@ if [[ -v ASAN_OPTIONS || -v UBSAN_OPTIONS ]]; then
PAYLOAD_MAX=10000 # 10K
fi
# Disable debugging logs from systemd-homed, systemd-nsresourced, and systemd-userdbd.
# Otherwise, journal is filled with the debugging logs by them.
systemctl service-log-level systemd-homed.service info
for service in systemd-nsresourced.service systemd-userdbd.service; do
mkdir -p "/run/systemd/system/${service}.d"
cat >"/run/systemd/system/${service}.d/10-disable-debug.conf" <<EOF
[Service]
Environment=SYSTEMD_LOG_LEVEL=info
EOF
systemctl daemon-reload
systemctl restart "$service"
done
test_systemd() {
systemd-run "$@" --pipe --wait \
-- dfuzzer -b "$PAYLOAD_MAX" -n org.freedesktop.systemd1