mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-13 05:05:29 +03:00
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:
parent
1bae25ac65
commit
084f2307d4
1 changed files with 8 additions and 6 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue