nixosTests.predictable-interface-names: python
This commit is contained in:
parent
e1456b291c
commit
8d6bcf80a2
@ -4,7 +4,7 @@
|
|||||||
}:
|
}:
|
||||||
|
|
||||||
let
|
let
|
||||||
inherit (import ../lib/testing.nix { inherit system pkgs; }) makeTest;
|
inherit (import ../lib/testing-python.nix { inherit system pkgs; }) makeTest;
|
||||||
in pkgs.lib.listToAttrs (pkgs.lib.crossLists (predictable: withNetworkd: {
|
in pkgs.lib.listToAttrs (pkgs.lib.crossLists (predictable: withNetworkd: {
|
||||||
name = pkgs.lib.optionalString (!predictable) "un" + "predictable"
|
name = pkgs.lib.optionalString (!predictable) "un" + "predictable"
|
||||||
+ pkgs.lib.optionalString withNetworkd "Networkd";
|
+ pkgs.lib.optionalString withNetworkd "Networkd";
|
||||||
@ -20,8 +20,8 @@ in pkgs.lib.listToAttrs (pkgs.lib.crossLists (predictable: withNetworkd: {
|
|||||||
};
|
};
|
||||||
|
|
||||||
testScript = ''
|
testScript = ''
|
||||||
print $machine->succeed("ip link");
|
print(machine.succeed("ip link"))
|
||||||
$machine->${if predictable then "fail" else "succeed"}("ip link show eth0 ");
|
machine.${if predictable then "fail" else "succeed"}("ip link show eth0")
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
}) [[true false] [true false]])
|
}) [[true false] [true false]])
|
||||||
|
Loading…
Reference in New Issue
Block a user