forked from mirrors/nixpkgs
nixos/boot-stage1: port test to python
This commit is contained in:
parent
44e6c84ea1
commit
54cc018b1e
|
@ -1,4 +1,4 @@
|
||||||
import ./make-test.nix ({ pkgs, ... }: {
|
import ./make-test-python.nix ({ pkgs, ... }: {
|
||||||
name = "boot-stage1";
|
name = "boot-stage1";
|
||||||
|
|
||||||
machine = { config, pkgs, lib, ... }: {
|
machine = { config, pkgs, lib, ... }: {
|
||||||
|
@ -150,12 +150,12 @@ import ./make-test.nix ({ pkgs, ... }: {
|
||||||
};
|
};
|
||||||
|
|
||||||
testScript = ''
|
testScript = ''
|
||||||
$machine->waitForUnit("multi-user.target");
|
machine.wait_for_unit("multi-user.target")
|
||||||
$machine->succeed('test -s /run/canary2.pid');
|
machine.succeed("test -s /run/canary2.pid")
|
||||||
$machine->fail('pgrep -a canary1');
|
machine.fail("pgrep -a canary1")
|
||||||
$machine->fail('kill -0 $(< /run/canary2.pid)');
|
machine.fail("kill -0 $(< /run/canary2.pid)")
|
||||||
$machine->succeed('pgrep -a -f \'^@canary3$\''');
|
machine.succeed('pgrep -a -f "^@canary3$"')
|
||||||
$machine->succeed('pgrep -a -f \'^kcanary$\''');
|
machine.succeed('pgrep -a -f "^kcanary$"')
|
||||||
'';
|
'';
|
||||||
|
|
||||||
meta.maintainers = with pkgs.stdenv.lib.maintainers; [ aszlig ];
|
meta.maintainers = with pkgs.stdenv.lib.maintainers; [ aszlig ];
|
||||||
|
|
Loading…
Reference in a new issue