From 3d6eb1ed420c17aef877157b41a1735cc2c0b150 Mon Sep 17 00:00:00 2001 From: Nick Rosbrook Date: Fri, 14 Nov 2025 09:37:21 -0500 Subject: [PATCH] test: wait for interface to come online before checking DNS scopes The current test is flaky because it creates a new interface definition, calls networkctl reload, and then calls resolvectl show-cache. If resolved has not received the changes and setup the DNS scopes for the interface, show-cache will be empty for that interface. Part 2 of #39602 --- test/units/TEST-75-RESOLVED.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/test/units/TEST-75-RESOLVED.sh b/test/units/TEST-75-RESOLVED.sh index 4d2257d6e0..f8e6ffa56d 100755 --- a/test/units/TEST-75-RESOLVED.sh +++ b/test/units/TEST-75-RESOLVED.sh @@ -828,6 +828,7 @@ testcase_09_resolvectl_showcache() { } > /run/systemd/network/10-dns2.network networkctl reload networkctl reconfigure dns2 + /usr/lib/systemd/systemd-networkd-wait-online --timeout=60 --dns --interface=dns2 mkdir -p /run/systemd/resolved.conf.d/ {