summary refs log tree commit diff
path: root/nixos/tests/xss-lock.nix
diff options
context:
space:
mode:
authorMaximilian Bosch <maximilian@mbosch.me>2018-05-20 20:59:53 +0200
committerxeji <36407913+xeji@users.noreply.github.com>2018-05-20 20:59:53 +0200
commit4db2d4d1fda550d480faa72e32b0e4e07c7862b5 (patch)
treebe6d870fee65d94b9133f5261a16de870a44e578 /nixos/tests/xss-lock.nix
parentb7ba5dec0d8027980012227e32855d71f0fa888d (diff)
downloadnixpkgs-4db2d4d1fda550d480faa72e32b0e4e07c7862b5.tar
nixpkgs-4db2d4d1fda550d480faa72e32b0e4e07c7862b5.tar.gz
nixpkgs-4db2d4d1fda550d480faa72e32b0e4e07c7862b5.tar.bz2
nixpkgs-4db2d4d1fda550d480faa72e32b0e4e07c7862b5.tar.lz
nixpkgs-4db2d4d1fda550d480faa72e32b0e4e07c7862b5.tar.xz
nixpkgs-4db2d4d1fda550d480faa72e32b0e4e07c7862b5.tar.zst
nixpkgs-4db2d4d1fda550d480faa72e32b0e4e07c7862b5.zip
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.
Diffstat (limited to 'nixos/tests/xss-lock.nix')
-rw-r--r--nixos/tests/xss-lock.nix2
1 files changed, 1 insertions, 1 deletions
diff --git a/nixos/tests/xss-lock.nix b/nixos/tests/xss-lock.nix
index 3e3864cab77..045667bdcde 100644
--- a/nixos/tests/xss-lock.nix
+++ b/nixos/tests/xss-lock.nix
@@ -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");
   '';
 })