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.
main
Michael Weiss 2 years ago
parent 1bae25ac65
commit 084f2307d4
No known key found for this signature in database
GPG Key ID: 5BE487C4D4771D83
  1. 14
      nixos/tests/chromium.nix

@ -45,12 +45,14 @@ mapAttrs (channel: chromiumPkg: makeTest {
enableOCR = true; enableOCR = true;
machine.imports = [ ./common/user-account.nix ./common/x11.nix ]; nodes.machine = { ... }: {
machine.virtualisation.memorySize = 2047; imports = [ ./common/user-account.nix ./common/x11.nix ];
machine.test-support.displayManager.auto.user = user; virtualisation.memorySize = 2047;
machine.environment = { test-support.displayManager.auto.user = user;
systemPackages = [ chromiumPkg ]; environment = {
variables."XAUTHORITY" = "/home/alice/.Xauthority"; systemPackages = [ chromiumPkg ];
variables."XAUTHORITY" = "/home/alice/.Xauthority";
};
}; };
testScript = let testScript = let

Loading…
Cancel
Save