summary refs log tree commit diff
path: root/nixos/tests
diff options
context:
space:
mode:
authorLuca Bruno <lethalman88@gmail.com>2015-09-30 18:29:08 +0200
committerLuca Bruno <lethalman88@gmail.com>2015-09-30 18:29:51 +0200
commitc6d77eb0bf39005343426d8291b5a42c0a28a73b (patch)
treefd5e6e26aa49c7a86acb84143271d86e9c4a8657 /nixos/tests
parentd8c1284d816f966f2815d75e8041464301c14f94 (diff)
downloadnixpkgs-c6d77eb0bf39005343426d8291b5a42c0a28a73b.tar
nixpkgs-c6d77eb0bf39005343426d8291b5a42c0a28a73b.tar.gz
nixpkgs-c6d77eb0bf39005343426d8291b5a42c0a28a73b.tar.bz2
nixpkgs-c6d77eb0bf39005343426d8291b5a42c0a28a73b.tar.lz
nixpkgs-c6d77eb0bf39005343426d8291b5a42c0a28a73b.tar.xz
nixpkgs-c6d77eb0bf39005343426d8291b5a42c0a28a73b.tar.zst
nixpkgs-c6d77eb0bf39005343426d8291b5a42c0a28a73b.zip
nixos/tests/gnome3: wait for gnome shell to be started, for a better screenshot
Diffstat (limited to 'nixos/tests')
-rw-r--r--nixos/tests/gnome3.nix3
1 files changed, 2 insertions, 1 deletions
diff --git a/nixos/tests/gnome3.nix b/nixos/tests/gnome3.nix
index f5e0159f1c7..7662efe1b35 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");
     '';
 })