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.
This commit is contained in:
Michael Weiss 2022-05-14 23:49:57 +02:00
parent 1bae25ac65
commit 084f2307d4
No known key found for this signature in database
GPG Key ID: 5BE487C4D4771D83

View File

@ -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