From 7651fcfe48c79c3bff7cfcc2063b54abf5d7fc1c Mon Sep 17 00:00:00 2001 From: worldofpeace Date: Thu, 30 Jan 2020 06:14:22 -0500 Subject: [PATCH] nixosTests.gnome3: wait_for_wayland at login This prevents the default.target check from just failing. Blaming it on using systemctl in wait_for_unit (and it's particularly buggy for user units). --- nixos/tests/gnome3.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nixos/tests/gnome3.nix b/nixos/tests/gnome3.nix index 37e4f1680b72..486c146d8dc3 100644 --- a/nixos/tests/gnome3.nix +++ b/nixos/tests/gnome3.nix @@ -49,14 +49,14 @@ import ./make-test-python.nix ({ pkgs, ...} : { with subtest("Login to GNOME with GDM"): # wait for gdm to start machine.wait_for_unit("display-manager.service") + # wait for the wayland server + machine.wait_for_file("/run/user/${uid}/wayland-0") # wait for alice to be logged in machine.wait_for_unit("default.target", "${user.name}") # check that logging in has given the user ownership of devices assert "alice" in machine.succeed("getfacl -p /dev/snd/timer") with subtest("Wait for GNOME Shell"): - # wait for the wayland server - machine.wait_for_file("/run/user/${uid}/wayland-0") # correct output should be (true, 'false') machine.wait_until_succeeds( "${startingUp} | grep -q 'true,..false'"