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:
Maximilian Bosch 2018-05-20 20:59:53 +02:00 committed by xeji
parent b7ba5dec0d
commit 4db2d4d1fd

View file

@ -20,6 +20,6 @@ with lib;
$machine->fail("pgrep xlock");
$machine->succeed("su -l alice -c 'xset dpms force standby'");
$machine->succeed("pgrep xlock");
$machine->waitUntilSucceeds("pgrep xlock");
'';
})