From: Nick Rosbrook Date: Fri, 14 Nov 2025 14:37:21 +0000 (-0500) Subject: test: wait for interface to come online before checking DNS scopes X-Git-Tag: v259-rc1~54 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=3d6eb1ed420c17aef877157b41a1735cc2c0b150;p=thirdparty%2Fsystemd.git 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 --- diff --git a/test/units/TEST-75-RESOLVED.sh b/test/units/TEST-75-RESOLVED.sh index 4d2257d6e0f..f8e6ffa56df 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/ {