mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-23 07:23:20 +00:00
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"):
|
||||
machine.start()
|
||||
machine.wait_for_unit("network-online.target")
|
||||
machine.wait_for_unit("network.target")
|
||||
|
||||
with subtest("Test interfaces set up"):
|
||||
list = machine.succeed("ip tuntap list | sort").strip()
|
||||
@ -486,7 +486,8 @@ let
|
||||
""".format(
|
||||
list, targetList
|
||||
)
|
||||
|
||||
'' # network-addresses-* only exist in scripted networking
|
||||
+ optionalString (!networkd) ''
|
||||
with subtest("Test interfaces clean up"):
|
||||
machine.succeed("systemctl stop network-addresses-tap0")
|
||||
machine.sleep(10)
|
||||
|
Loading…
Reference in New Issue
Block a user