about summary refs log tree commit diff
path: root/nixos/tests
diff options
context:
space:
mode:
authorChristian Kampka <christian@kampka.net>2019-12-15 18:22:35 +0100
committerChristian Kampka <christian@kampka.net>2019-12-15 18:22:35 +0100
commitaeeabe0b89d60bda9d35e84c643ccb62ebcd7ae0 (patch)
tree8c3ee078c4b2022a15955353cb474795d0c40830 /nixos/tests
parent69b1b0cff0533a81328ae0e07cecd26c038d5057 (diff)
downloadnixlib-aeeabe0b89d60bda9d35e84c643ccb62ebcd7ae0.tar
nixlib-aeeabe0b89d60bda9d35e84c643ccb62ebcd7ae0.tar.gz
nixlib-aeeabe0b89d60bda9d35e84c643ccb62ebcd7ae0.tar.bz2
nixlib-aeeabe0b89d60bda9d35e84c643ccb62ebcd7ae0.tar.lz
nixlib-aeeabe0b89d60bda9d35e84c643ccb62ebcd7ae0.tar.xz
nixlib-aeeabe0b89d60bda9d35e84c643ccb62ebcd7ae0.tar.zst
nixlib-aeeabe0b89d60bda9d35e84c643ccb62ebcd7ae0.zip
nixosTests.switch-test: Port tests to python
Diffstat (limited to 'nixos/tests')
-rw-r--r--nixos/tests/switch-test.nix10
1 files changed, 7 insertions, 3 deletions
diff --git a/nixos/tests/switch-test.nix b/nixos/tests/switch-test.nix
index 0dba3697980f..7076bd77b770 100644
--- a/nixos/tests/switch-test.nix
+++ b/nixos/tests/switch-test.nix
@@ -1,6 +1,6 @@
 # Test configuration switching.
 
-import ./make-test.nix ({ pkgs, ...} : {
+import ./make-test-python.nix ({ pkgs, ...} : {
   name = "switch-test";
   meta = with pkgs.stdenv.lib.maintainers; {
     maintainers = [ gleber ];
@@ -28,7 +28,11 @@ import ./make-test.nix ({ pkgs, ...} : {
       exec env -i "$@" | tee /dev/stderr
     '';
   in ''
-    $machine->succeed("${stderrRunner} ${originalSystem}/bin/switch-to-configuration test");
-    $machine->succeed("${stderrRunner} ${otherSystem}/bin/switch-to-configuration test");
+    machine.succeed(
+        "${stderrRunner} ${originalSystem}/bin/switch-to-configuration test"
+    )
+    machine.succeed(
+        "${stderrRunner} ${otherSystem}/bin/switch-to-configuration test"
+    )
   '';
 })