From b2062ee2d9126a6086647fc0ec81fd9ab1c5610c Mon Sep 17 00:00:00 2001 From: Yu Watanabe Date: Fri, 10 May 2024 14:21:10 +0900 Subject: [PATCH] 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. --- test/units/testsuite-74.networkctl.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/test/units/testsuite-74.networkctl.sh b/test/units/testsuite-74.networkctl.sh index d05de17bde..3e333a2eab 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)" -- 2.25.1