nixos/tests/networking: Fix link test

The test was looking at the wrong interface and relying on silly
behaviour by the dummy driver, which autocreated a `dummy0` interface on
modprobe.

Fix this by making it look at the actual `foo` interface that the test
creates.
This commit is contained in:
Martin Weinelt 2022-02-24 23:08:00 +01:00
parent cb7aad71e5
commit 60225c6bbd
No known key found for this signature in database
GPG key ID: 87C1E9888F856759

View file

@ -868,7 +868,7 @@ let
print(client.succeed("ip l add name foo type dummy"))
print(client.succeed("stat /etc/systemd/network/50-foo.link"))
client.succeed("udevadm settle")
assert "mtu 1442" in client.succeed("ip l show dummy0")
assert "mtu 1442" in client.succeed("ip l show dev foo")
'';
};
wlanInterface = let