diff options
author | Robert Hensing <robert@roberthensing.nl> | 2022-03-21 00:14:06 +0100 |
---|---|---|
committer | Robert Hensing <robert@roberthensing.nl> | 2022-03-28 14:11:58 +0200 |
commit | ecbf5ae27a9ee6e877a20e3abce85c21e4bda9c2 (patch) | |
tree | 3f641e1d2db072a107496a429da253fd84815aca /nixos/lib/testing-python.nix | |
parent | b3de7202d1ae273189286eeb85c276af9044168f (diff) |
nixosTest: Simplify doc by deprecating syntax sugar
Diffstat (limited to 'nixos/lib/testing-python.nix')
-rw-r--r-- | nixos/lib/testing-python.nix | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/nixos/lib/testing-python.nix b/nixos/lib/testing-python.nix index facc7a253a759..cd2bb2f9d4d4c 100644 --- a/nixos/lib/testing-python.nix +++ b/nixos/lib/testing-python.nix @@ -206,6 +206,7 @@ rec { )]; }; in + lib.warnIf (t?machine) "In test `${name}': The `machine' attribute in NixOS tests (pkgs.nixosTest / make-test-pyton.nix / testing-python.nix / makeTest) is deprecated. Please use the equivalent `nodes.machine'." build-vms.buildVirtualNetwork ( nodes // lib.optionalAttrs (machine != null) { inherit machine; } ); |