Browse Source

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.
nsd-state-dir
Florian Klink 3 years ago
parent
commit
5150378c2f
  1. 5
      nixos/tests/networking.nix

5
nixos/tests/networking.nix

@ -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…
Cancel
Save