test: use wait-online
This commit is contained in:
@@ -40,7 +40,7 @@ printf '%s\n' '[Match]' 'Name=test2' | cmp - "/etc/systemd/network/$NETWORK_NAME
|
||||
|
||||
cat >"+4" <<EOF
|
||||
[Network]
|
||||
DHCP=yes
|
||||
IPv6AcceptRA=no
|
||||
EOF
|
||||
|
||||
EDITOR='cp' script -ec 'networkctl edit "$NETWORK_NAME" --drop-in test' /dev/null
|
||||
@@ -74,7 +74,7 @@ systemctl stop systemd-networkd
|
||||
(! networkctl cat @test2)
|
||||
|
||||
systemctl start systemd-networkd
|
||||
sleep 1
|
||||
SYSTEMD_LOG_LEVEL=debug /usr/lib/systemd/systemd-networkd-wait-online -i test2:carrier --timeout 20
|
||||
networkctl cat @test2:network | cmp - <(networkctl cat "$NETWORK_NAME")
|
||||
|
||||
EDITOR='cp' script -ec 'networkctl edit @test2 --drop-in test2.conf' /dev/null
|
||||
|
||||
Reference in New Issue
Block a user