From: Yu Watanabe Date: Fri, 10 May 2024 05:21:10 +0000 (+0900) Subject: test: wait for network interface reconfigured after updating config X-Git-Tag: v256-rc2~55 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=b2062ee2d9126a6086647fc0ec81fd9ab1c5610c;p=thirdparty%2Fsystemd.git test: wait for network interface reconfigured after updating config Otherwise, at this stage, the interface may be in e.g. initialized or pending state, and the drop-in file introduced by the previous command may not be registered to the state file for the interface. Fixes #32685. --- diff --git a/test/units/testsuite-74.networkctl.sh b/test/units/testsuite-74.networkctl.sh index d05de17bde0..3e333a2eabe 100755 --- a/test/units/testsuite-74.networkctl.sh +++ b/test/units/testsuite-74.networkctl.sh @@ -106,6 +106,7 @@ networkctl cat @test2:network | cmp - <(networkctl cat "$NETWORK_NAME") EDITOR='cp' script -ec 'networkctl edit @test2 --drop-in test2.conf' /dev/null cmp "+4" "/etc/systemd/network/${NETWORK_NAME}.d/test2.conf" +SYSTEMD_LOG_LEVEL=debug /usr/lib/systemd/systemd-networkd-wait-online -i test2:carrier --timeout 20 (! EDITOR='true' script -ec 'networkctl edit @test2 --runtime --drop-in test2.conf' /dev/null) ip_link="$(ip link show test2)"