]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
test: use wait-online 29930/head
authorYu Watanabe <watanabe.yu+github@gmail.com>
Wed, 8 Nov 2023 18:11:20 +0000 (03:11 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Wed, 8 Nov 2023 22:16:56 +0000 (07:16 +0900)
test/units/testsuite-74.networkctl.sh

index 6ba86b9f8da6bf8850855a411f5834eb8624e5fd..0a687af6e4d7db9037975fed366004870c3a9269 100755 (executable)
@@ -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