git.iko.soy/typeable/nixpkgs
on master help sign in
nixosTests.switch-test: Port tests to python
commitaeeabe0b89d60bda9d35e84c643ccb62ebcd7ae0 authorChristian Kampka <christian@kampka.net> dateSun 15 Dec 2019, 18:22 (7 years ago) parent69b1b0c
1 file changed+7−3
nixos/tests/switch-test.nix+7−3
nixos/tests/switch-test.nix+7−3
@@ -1,6 +1,6 @@
11# Test configuration switching.
22
3−import ./make-test.nix ({ pkgs, ...} : {
3+import ./make-test-python.nix ({ pkgs, ...} : {
44 name = "switch-test";
55 meta = with pkgs.stdenv.lib.maintainers; {
66 maintainers = [ gleber ];
@@ -28,7 +28,11 @@ import ./make-test.nix ({ pkgs, ...} : {
2828 exec env -i "$@" | tee /dev/stderr
2929 '';
3030 in ''
31− $machine->succeed("${stderrRunner} ${originalSystem}/bin/switch-to-configuration test");
32− $machine->succeed("${stderrRunner} ${otherSystem}/bin/switch-to-configuration test");
31+ machine.succeed(
32+ "${stderrRunner} ${originalSystem}/bin/switch-to-configuration test"
33+ )
34+ machine.succeed(
35+ "${stderrRunner} ${otherSystem}/bin/switch-to-configuration test"
36+ )
3337 '';
3438})