summary refs log tree commit diff
path: root/nixos/tests
diff options
context:
space:
mode:
authorMichael Weiss <dev.primeos@gmail.com>2022-05-14 23:49:57 +0200
committerMichael Weiss <dev.primeos@gmail.com>2022-05-14 23:54:41 +0200
commit084f2307d4081b07ed81f9d581af5065e8adf043 (patch)
tree4279fab2c087f547361f3a0554aac16fa08ffe32 /nixos/tests
parent1bae25ac65a43c6c28961136bfe2c1a384fd9d09 (diff)
downloadnixpkgs-084f2307d4081b07ed81f9d581af5065e8adf043.tar
nixpkgs-084f2307d4081b07ed81f9d581af5065e8adf043.tar.gz
nixpkgs-084f2307d4081b07ed81f9d581af5065e8adf043.tar.bz2
nixpkgs-084f2307d4081b07ed81f9d581af5065e8adf043.tar.lz
nixpkgs-084f2307d4081b07ed81f9d581af5065e8adf043.tar.xz
nixpkgs-084f2307d4081b07ed81f9d581af5065e8adf043.tar.zst
nixpkgs-084f2307d4081b07ed81f9d581af5065e8adf043.zip
nixos/tests/chromium: Switch to nodes.machine (vs. deprecated machine attribute)
The old attribute is deprecated:
trace: warning: In test `chromium-stable': The `machine' attribute in NixOS
tests (pkgs.nixosTest / make-test-pyton.nix / testing-python.nix / makeTest) is
deprecated. Please use the equivalent `nodes.machine'.

Note: This is only a refactoring.
Diffstat (limited to 'nixos/tests')
-rw-r--r--nixos/tests/chromium.nix14
1 files changed, 8 insertions, 6 deletions
diff --git a/nixos/tests/chromium.nix b/nixos/tests/chromium.nix
index 3815dca7622..6b296fe8a61 100644
--- a/nixos/tests/chromium.nix
+++ b/nixos/tests/chromium.nix
@@ -45,12 +45,14 @@ mapAttrs (channel: chromiumPkg: makeTest {
 
   enableOCR = true;
 
-  machine.imports = [ ./common/user-account.nix ./common/x11.nix ];
-  machine.virtualisation.memorySize = 2047;
-  machine.test-support.displayManager.auto.user = user;
-  machine.environment = {
-    systemPackages = [ chromiumPkg ];
-    variables."XAUTHORITY" = "/home/alice/.Xauthority";
+  nodes.machine = { ... }: {
+    imports = [ ./common/user-account.nix ./common/x11.nix ];
+    virtualisation.memorySize = 2047;
+    test-support.displayManager.auto.user = user;
+    environment = {
+      systemPackages = [ chromiumPkg ];
+      variables."XAUTHORITY" = "/home/alice/.Xauthority";
+    };
   };
 
   testScript = let