From 60225c6bbd5c5043b7f188bd8cf25d320030c84d Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Thu, 24 Feb 2022 23:08:00 +0100 Subject: [PATCH] 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. --- nixos/tests/networking.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nixos/tests/networking.nix b/nixos/tests/networking.nix index 2d68bc859df5..8c9df19f2d58 100644 --- a/nixos/tests/networking.nix +++ b/nixos/tests/networking.nix @@ -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