git.iko.soy/typeable/nixpkgs
on master help sign in
nixos/boot-stage1: port test to python
commit54cc018b1ed325a476ce416934391edcee7dcce1 authorMarijan <marijan.petricevic@hotmail.de> dateTue 5 Nov 2019, 13:48 (7 years ago) parent44e6c84
1 file changed+7−7
nixos/tests/boot-stage1.nix+7−7
nixos/tests/boot-stage1.nix+7−7
@@ -1,4 +1,4 @@
1−import ./make-test.nix ({ pkgs, ... }: {
1+import ./make-test-python.nix ({ pkgs, ... }: {
22 name = "boot-stage1";
33
44 machine = { config, pkgs, lib, ... }: {
@@ -150,12 +150,12 @@ import ./make-test.nix ({ pkgs, ... }: {
150150 };
151151
152152 testScript = ''
153− $machine->waitForUnit("multi-user.target");
154− $machine->succeed('test -s /run/canary2.pid');
155− $machine->fail('pgrep -a canary1');
156− $machine->fail('kill -0 $(< /run/canary2.pid)');
157− $machine->succeed('pgrep -a -f \'^@canary3$\''');
158− $machine->succeed('pgrep -a -f \'^kcanary$\''');
153+ machine.wait_for_unit("multi-user.target")
154+ machine.succeed("test -s /run/canary2.pid")
155+ machine.fail("pgrep -a canary1")
156+ machine.fail("kill -0 $(< /run/canary2.pid)")
157+ machine.succeed('pgrep -a -f "^@canary3$"')
158+ machine.succeed('pgrep -a -f "^kcanary$"')
159159 '';
160160
161161 meta.maintainers = with pkgs.stdenv.lib.maintainers; [ aszlig ];