nixos/xsslock: wait until `pgrep xlock` succeeds (#40810)
Please refer to the conversation in the original PR (#40619) for further reference: https://github.com/NixOS/nixpkgs/pull/40619#issuecomment-390437845 It takes some time after the standby to trigger the locker which might break the test on Hydra.
This commit is contained in:
parent
b7ba5dec0d
commit
4db2d4d1fd
|
@ -20,6 +20,6 @@ with lib;
|
||||||
|
|
||||||
$machine->fail("pgrep xlock");
|
$machine->fail("pgrep xlock");
|
||||||
$machine->succeed("su -l alice -c 'xset dpms force standby'");
|
$machine->succeed("su -l alice -c 'xset dpms force standby'");
|
||||||
$machine->succeed("pgrep xlock");
|
$machine->waitUntilSucceeds("pgrep xlock");
|
||||||
'';
|
'';
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in New Issue