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).
This commit is contained in:
parent
9888b30924
commit
7651fcfe48
|
@ -49,14 +49,14 @@ import ./make-test-python.nix ({ pkgs, ...} : {
|
||||||
with subtest("Login to GNOME with GDM"):
|
with subtest("Login to GNOME with GDM"):
|
||||||
# wait for gdm to start
|
# wait for gdm to start
|
||||||
machine.wait_for_unit("display-manager.service")
|
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
|
# wait for alice to be logged in
|
||||||
machine.wait_for_unit("default.target", "${user.name}")
|
machine.wait_for_unit("default.target", "${user.name}")
|
||||||
# check that logging in has given the user ownership of devices
|
# check that logging in has given the user ownership of devices
|
||||||
assert "alice" in machine.succeed("getfacl -p /dev/snd/timer")
|
assert "alice" in machine.succeed("getfacl -p /dev/snd/timer")
|
||||||
|
|
||||||
with subtest("Wait for GNOME Shell"):
|
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')
|
# correct output should be (true, 'false')
|
||||||
machine.wait_until_succeeds(
|
machine.wait_until_succeeds(
|
||||||
"${startingUp} | grep -q 'true,..false'"
|
"${startingUp} | grep -q 'true,..false'"
|
||||||
|
|
Loading…
Reference in a new issue