mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-29 06:45:54 +03:00
Merge pull request #79659 from worldofpeace/cleanup-python-test-lib
testing: fix runInMachineWithX/runInMachine
This commit is contained in:
commit
95e41ecd8f
@ -218,12 +218,12 @@ in rec {
|
|||||||
'';
|
'';
|
||||||
|
|
||||||
testScript = ''
|
testScript = ''
|
||||||
startAll;
|
start_all()
|
||||||
$client->waitForUnit("multi-user.target");
|
client.wait_for_unit("multi-user.target")
|
||||||
${preBuild}
|
${preBuild}
|
||||||
$client->succeed("env -i ${bash}/bin/bash ${buildrunner} /tmp/xchg/saved-env >&2");
|
client.succeed("env -i ${bash}/bin/bash ${buildrunner} /tmp/xchg/saved-env >&2")
|
||||||
${postBuild}
|
${postBuild}
|
||||||
$client->succeed("sync"); # flush all data before pulling the plug
|
client.succeed("sync") # flush all data before pulling the plug
|
||||||
'';
|
'';
|
||||||
|
|
||||||
vmRunCommand = writeText "vm-run" ''
|
vmRunCommand = writeText "vm-run" ''
|
||||||
@ -263,9 +263,12 @@ in rec {
|
|||||||
{ ... }:
|
{ ... }:
|
||||||
{
|
{
|
||||||
inherit require;
|
inherit require;
|
||||||
|
imports = [
|
||||||
|
../tests/common/auto.nix
|
||||||
|
];
|
||||||
virtualisation.memorySize = 1024;
|
virtualisation.memorySize = 1024;
|
||||||
services.xserver.enable = true;
|
services.xserver.enable = true;
|
||||||
services.xserver.displayManager.auto.enable = true;
|
test-support.displayManager.auto.enable = true;
|
||||||
services.xserver.displayManager.defaultSession = "none+icewm";
|
services.xserver.displayManager.defaultSession = "none+icewm";
|
||||||
services.xserver.windowManager.icewm.enable = true;
|
services.xserver.windowManager.icewm.enable = true;
|
||||||
};
|
};
|
||||||
@ -274,7 +277,7 @@ in rec {
|
|||||||
machine = client;
|
machine = client;
|
||||||
preBuild =
|
preBuild =
|
||||||
''
|
''
|
||||||
$client->waitForX;
|
client.wait_for_x()
|
||||||
'';
|
'';
|
||||||
} // args);
|
} // args);
|
||||||
|
|
||||||
|
@ -250,9 +250,12 @@ in rec {
|
|||||||
{ ... }:
|
{ ... }:
|
||||||
{
|
{
|
||||||
inherit require;
|
inherit require;
|
||||||
|
imports = [
|
||||||
|
../tests/common/auto.nix
|
||||||
|
];
|
||||||
virtualisation.memorySize = 1024;
|
virtualisation.memorySize = 1024;
|
||||||
services.xserver.enable = true;
|
services.xserver.enable = true;
|
||||||
services.xserver.displayManager.auto.enable = true;
|
test-support.displayManager.auto.enable = true;
|
||||||
services.xserver.displayManager.defaultSession = "none+icewm";
|
services.xserver.displayManager.defaultSession = "none+icewm";
|
||||||
services.xserver.windowManager.icewm.enable = true;
|
services.xserver.windowManager.icewm.enable = true;
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user