nixosTests.networking.virtual: fix with networkd
We only need to wait for network.target to get up, and the network-addresses-${interfaceName} units are scripted networking only.
This commit is contained in:
parent
1e1945319c
commit
5150378c2f
|
@ -471,7 +471,7 @@ let
|
||||||
|
|
||||||
with subtest("Wait for networking to come up"):
|
with subtest("Wait for networking to come up"):
|
||||||
machine.start()
|
machine.start()
|
||||||
machine.wait_for_unit("network-online.target")
|
machine.wait_for_unit("network.target")
|
||||||
|
|
||||||
with subtest("Test interfaces set up"):
|
with subtest("Test interfaces set up"):
|
||||||
list = machine.succeed("ip tuntap list | sort").strip()
|
list = machine.succeed("ip tuntap list | sort").strip()
|
||||||
|
@ -486,7 +486,8 @@ let
|
||||||
""".format(
|
""".format(
|
||||||
list, targetList
|
list, targetList
|
||||||
)
|
)
|
||||||
|
'' # network-addresses-* only exist in scripted networking
|
||||||
|
+ optionalString (!networkd) ''
|
||||||
with subtest("Test interfaces clean up"):
|
with subtest("Test interfaces clean up"):
|
||||||
machine.succeed("systemctl stop network-addresses-tap0")
|
machine.succeed("systemctl stop network-addresses-tap0")
|
||||||
machine.sleep(10)
|
machine.sleep(10)
|
||||||
|
|
Loading…
Reference in New Issue