nixosTests.switch-test: Port tests to python
This commit is contained in:
parent
69b1b0cff0
commit
aeeabe0b89
|
@ -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"
|
||||||
|
)
|
||||||
'';
|
'';
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in New Issue