diff --git a/src/core/bpf-firewall.c b/src/core/bpf-firewall.c index 2d154710e0..3c1c02e444 100644 --- a/src/core/bpf-firewall.c +++ b/src/core/bpf-firewall.c @@ -914,7 +914,10 @@ int bpf_firewall_supported(void) { void emit_bpf_firewall_warning(Unit *u) { static bool warned = false; - if (!warned) { + assert(u); + assert(u->manager); + + if (!warned && !MANAGER_IS_TEST_RUN(u->manager)) { bool quiet = bpf_firewall_unsupported_reason == -EPERM && detect_container() > 0; log_unit_full_errno(u, quiet ? LOG_DEBUG : LOG_WARNING, bpf_firewall_unsupported_reason, diff --git a/test/units/testsuite-65.sh b/test/units/testsuite-65.sh index 245f74c5d9..867a77a1b7 100755 --- a/test/units/testsuite-65.sh +++ b/test/units/testsuite-65.sh @@ -4,6 +4,7 @@ set -eux systemd-analyze log-level debug +export SYSTEMD_LOG_LEVEL=debug mkdir -p /tmp/img/usr/lib/systemd/system/ mkdir -p /tmp/img/opt/