summary refs log tree commit diff
path: root/nixos/tests/networking.nix
diff options
context:
space:
mode:
authorMartin Weinelt <hexa@darmstadt.ccc.de>2022-02-24 23:08:00 +0100
committerMartin Weinelt <hexa@darmstadt.ccc.de>2022-02-24 23:11:13 +0100
commit60225c6bbd5c5043b7f188bd8cf25d320030c84d (patch)
tree281ed0d3444cca48329ea3bbc42720bfa4d90605 /nixos/tests/networking.nix
parentcb7aad71e54deaaea8cb02c7303f3e081c10a7f8 (diff)
downloadnixpkgs-60225c6bbd5c5043b7f188bd8cf25d320030c84d.tar
nixpkgs-60225c6bbd5c5043b7f188bd8cf25d320030c84d.tar.gz
nixpkgs-60225c6bbd5c5043b7f188bd8cf25d320030c84d.tar.bz2
nixpkgs-60225c6bbd5c5043b7f188bd8cf25d320030c84d.tar.lz
nixpkgs-60225c6bbd5c5043b7f188bd8cf25d320030c84d.tar.xz
nixpkgs-60225c6bbd5c5043b7f188bd8cf25d320030c84d.tar.zst
nixpkgs-60225c6bbd5c5043b7f188bd8cf25d320030c84d.zip
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.
Diffstat (limited to 'nixos/tests/networking.nix')
-rw-r--r--nixos/tests/networking.nix2
1 files changed, 1 insertions, 1 deletions
diff --git a/nixos/tests/networking.nix b/nixos/tests/networking.nix
index 2d68bc859df..8c9df19f2d5 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