diff options
author | Luca Bruno <lethalman88@gmail.com> | 2015-09-30 18:29:08 +0200 |
---|---|---|
committer | Luca Bruno <lethalman88@gmail.com> | 2015-09-30 18:29:51 +0200 |
commit | c6d77eb0bf39005343426d8291b5a42c0a28a73b (patch) | |
tree | fd5e6e26aa49c7a86acb84143271d86e9c4a8657 /nixos/tests/gnome3.nix | |
parent | d8c1284d816f966f2815d75e8041464301c14f94 (diff) |
nixos/tests/gnome3: wait for gnome shell to be started, for a better screenshot
Diffstat (limited to 'nixos/tests/gnome3.nix')
-rw-r--r-- | nixos/tests/gnome3.nix | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/nixos/tests/gnome3.nix b/nixos/tests/gnome3.nix index f5e0159f1c7d0..7662efe1b3501 100644 --- a/nixos/tests/gnome3.nix +++ b/nixos/tests/gnome3.nix @@ -28,7 +28,8 @@ import ./make-test.nix ({ pkgs, ...} : { $machine->succeed("su - alice -c 'DISPLAY=:0.0 gnome-terminal &'"); $machine->waitForWindow(qr/Terminal/); - $machine->sleep(20); + $machine->mustSucceed("timeout 60 bash -c 'journalctl -f|grep -m 1 \"GNOME Shell started\"'"); + $machine->sleep(10); $machine->screenshot("screen"); ''; }) |