summary refs log tree commit diff
path: root/nixos/lib/testing-python.nix
diff options
context:
space:
mode:
authorRobert Hensing <robert@roberthensing.nl>2022-03-21 00:14:06 +0100
committerRobert Hensing <robert@roberthensing.nl>2022-03-28 14:11:58 +0200
commitecbf5ae27a9ee6e877a20e3abce85c21e4bda9c2 (patch)
tree3f641e1d2db072a107496a429da253fd84815aca /nixos/lib/testing-python.nix
parentb3de7202d1ae273189286eeb85c276af9044168f (diff)
downloadnixpkgs-ecbf5ae27a9ee6e877a20e3abce85c21e4bda9c2.tar
nixpkgs-ecbf5ae27a9ee6e877a20e3abce85c21e4bda9c2.tar.gz
nixpkgs-ecbf5ae27a9ee6e877a20e3abce85c21e4bda9c2.tar.bz2
nixpkgs-ecbf5ae27a9ee6e877a20e3abce85c21e4bda9c2.tar.lz
nixpkgs-ecbf5ae27a9ee6e877a20e3abce85c21e4bda9c2.tar.xz
nixpkgs-ecbf5ae27a9ee6e877a20e3abce85c21e4bda9c2.tar.zst
nixpkgs-ecbf5ae27a9ee6e877a20e3abce85c21e4bda9c2.zip
nixosTest: Simplify doc by deprecating syntax sugar
Diffstat (limited to 'nixos/lib/testing-python.nix')
-rw-r--r--nixos/lib/testing-python.nix1
1 files changed, 1 insertions, 0 deletions
diff --git a/nixos/lib/testing-python.nix b/nixos/lib/testing-python.nix
index facc7a253a7..cd2bb2f9d4d 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; }
           );