nixosTests.switch-test: Port tests to python

This commit is contained in:
Christian Kampka 2019-12-15 18:22:35 +01:00
parent 69b1b0cff0
commit aeeabe0b89
No known key found for this signature in database
GPG Key ID: B88E140DB4FE1AA5
1 changed files with 7 additions and 3 deletions

View File

@ -1,6 +1,6 @@
# Test configuration switching. # Test configuration switching.
import ./make-test.nix ({ pkgs, ...} : { import ./make-test-python.nix ({ pkgs, ...} : {
name = "switch-test"; name = "switch-test";
meta = with pkgs.stdenv.lib.maintainers; { meta = with pkgs.stdenv.lib.maintainers; {
maintainers = [ gleber ]; maintainers = [ gleber ];
@ -28,7 +28,11 @@ import ./make-test.nix ({ pkgs, ...} : {
exec env -i "$@" | tee /dev/stderr exec env -i "$@" | tee /dev/stderr
''; '';
in '' in ''
$machine->succeed("${stderrRunner} ${originalSystem}/bin/switch-to-configuration test"); machine.succeed(
$machine->succeed("${stderrRunner} ${otherSystem}/bin/switch-to-configuration test"); "${stderrRunner} ${originalSystem}/bin/switch-to-configuration test"
)
machine.succeed(
"${stderrRunner} ${otherSystem}/bin/switch-to-configuration test"
)
''; '';
}) })