From c6d77eb0bf39005343426d8291b5a42c0a28a73b Mon Sep 17 00:00:00 2001 From: Luca Bruno Date: Wed, 30 Sep 2015 18:29:08 +0200 Subject: [PATCH] nixos/tests/gnome3: wait for gnome shell to be started, for a better screenshot --- nixos/tests/gnome3.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/nixos/tests/gnome3.nix b/nixos/tests/gnome3.nix index f5e0159f1c7d..7662efe1b350 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"); ''; })