mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-01 07:01:54 +00:00
testing-python: fix runInMachine
The test script's were unported. It's unclear whether the preBuild or postBuild will work as expect, due to the linting of the test scripts.
This commit is contained in:
parent
89e9f68549
commit
fa9af83e96
@ -218,12 +218,12 @@ in rec {
|
||||
'';
|
||||
|
||||
testScript = ''
|
||||
startAll;
|
||||
$client->waitForUnit("multi-user.target");
|
||||
start_all()
|
||||
client.wait_for_unit("multi-user.target")
|
||||
${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}
|
||||
$client->succeed("sync"); # flush all data before pulling the plug
|
||||
client.succeed("sync") # flush all data before pulling the plug
|
||||
'';
|
||||
|
||||
vmRunCommand = writeText "vm-run" ''
|
||||
@ -274,7 +274,7 @@ in rec {
|
||||
machine = client;
|
||||
preBuild =
|
||||
''
|
||||
$client->waitForX;
|
||||
client.wait_for_x()
|
||||
'';
|
||||
} // args);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user