]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
TEST-21-DFUZZER: suppress debugging logs from homed, nsresourced, and userdbd 37862/head
authorYu Watanabe <watanabe.yu+github@gmail.com>
Sat, 26 Jul 2025 14:19:50 +0000 (23:19 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Sat, 26 Jul 2025 23:48:53 +0000 (08:48 +0900)
test/units/TEST-21-DFUZZER.sh

index 6a0288001bf32d53af8de64fc5627782359b2cbc..449c2d8b9d8c4bfb66a9779bf7660e76c9b5214b 100755 (executable)
@@ -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