summary refs log tree commit diff
path: root/nixos
diff options
context:
space:
mode:
authorworldofpeace <worldofpeace@protonmail.ch>2020-02-09 16:21:52 -0500
committerworldofpeace <worldofpeace@protonmail.ch>2020-02-09 16:21:52 -0500
commitfa9af83e960aa982302bd367d8159f365eaa7471 (patch)
treea55bcb21d99ba064fb6816cb0e286b5842eec9b3 /nixos
parent89e9f68549f312d7b500f9cfe14c3f1d95ae2299 (diff)
downloadnixpkgs-fa9af83e960aa982302bd367d8159f365eaa7471.tar
nixpkgs-fa9af83e960aa982302bd367d8159f365eaa7471.tar.gz
nixpkgs-fa9af83e960aa982302bd367d8159f365eaa7471.tar.bz2
nixpkgs-fa9af83e960aa982302bd367d8159f365eaa7471.tar.lz
nixpkgs-fa9af83e960aa982302bd367d8159f365eaa7471.tar.xz
nixpkgs-fa9af83e960aa982302bd367d8159f365eaa7471.tar.zst
nixpkgs-fa9af83e960aa982302bd367d8159f365eaa7471.zip
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.
Diffstat (limited to 'nixos')
-rw-r--r--nixos/lib/testing-python.nix10
1 files changed, 5 insertions, 5 deletions
diff --git a/nixos/lib/testing-python.nix b/nixos/lib/testing-python.nix
index a7f6d792651..36394c594b2 100644
--- a/nixos/lib/testing-python.nix
+++ b/nixos/lib/testing-python.nix
@@ -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);