diff options
author | Michael Weiss <dev.primeos@gmail.com> | 2022-05-14 23:49:57 +0200 |
---|---|---|
committer | Michael Weiss <dev.primeos@gmail.com> | 2022-05-14 23:54:41 +0200 |
commit | 084f2307d4081b07ed81f9d581af5065e8adf043 (patch) | |
tree | 4279fab2c087f547361f3a0554aac16fa08ffe32 /nixos/tests/chromium.nix | |
parent | 1bae25ac65a43c6c28961136bfe2c1a384fd9d09 (diff) |
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/chromium.nix')
-rw-r--r-- | nixos/tests/chromium.nix | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/nixos/tests/chromium.nix b/nixos/tests/chromium.nix index 3815dca762203..6b296fe8a61ae 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 |