diff options
author | Christian Kampka <christian@kampka.net> | 2019-12-15 18:22:35 +0100 |
---|---|---|
committer | Christian Kampka <christian@kampka.net> | 2019-12-15 18:22:35 +0100 |
commit | aeeabe0b89d60bda9d35e84c643ccb62ebcd7ae0 (patch) | |
tree | 8c3ee078c4b2022a15955353cb474795d0c40830 /nixos/tests/switch-test.nix | |
parent | 69b1b0cff0533a81328ae0e07cecd26c038d5057 (diff) |
nixosTests.switch-test: Port tests to python
Diffstat (limited to 'nixos/tests/switch-test.nix')
-rw-r--r-- | nixos/tests/switch-test.nix | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/nixos/tests/switch-test.nix b/nixos/tests/switch-test.nix index 0dba3697980f9..7076bd77b770a 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" + ) ''; }) |