Merge pull request #57925 from rnhmjoj/ifnames-fix

nixos/tests/predictable-interfaces: fix failure on aarch64
This commit is contained in:
Matthew Bauer 2019-03-25 22:23:11 -04:00 committed by GitHub
commit 2924563f88
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -20,8 +20,7 @@ in pkgs.lib.listToAttrs (pkgs.lib.crossLists (predictable: withNetworkd: {
testScript = ''
print $machine->succeed("ip link");
$machine->succeed("ip link show ${if predictable then "ens3" else "eth0"}");
$machine->fail("ip link show ${if predictable then "eth0" else "ens3"}");
$machine->${if predictable then "fail" else "succeed"}("ip link show eth0 ");
'';
};
}) [[true false] [true false]])