nixos/simple: port test to python

This commit is contained in:
Marijan 2019-11-05 00:39:28 +01:00 committed by Marijan
parent 16d2fccfd9
commit 7d98a8ba77

View file

@ -1,4 +1,4 @@
import ./make-test.nix ({ pkgs, ...} : { import ./make-test-python.nix ({ pkgs, ...} : {
name = "simple"; name = "simple";
meta = with pkgs.stdenv.lib.maintainers; { meta = with pkgs.stdenv.lib.maintainers; {
maintainers = [ eelco ]; maintainers = [ eelco ];
@ -10,8 +10,8 @@ import ./make-test.nix ({ pkgs, ...} : {
testScript = testScript =
'' ''
startAll; start_all()
$machine->waitForUnit("multi-user.target"); machine.wait_for_unit("multi-user.target")
$machine->shutdown; machine.shutdown()
''; '';
}) })