nixos/test/login: Fix uaccess test.

This PR https://github.com/systemd/systemd/pull/36444 caused this bug
https://github.com/systemd/systemd/issues/39043, which is fixed in
this PR https://github.com/systemd/systemd/pull/39071. In short,
`uaccess` doesn't work with `OPTIONS+="static_node=..."` udev rules,
and `/dev/snd/timer` is a static node. 258.1 needs to wait for the
next staging cycle, so for now let's just use a non-static node.
This commit is contained in:
Will Fancher
2025-10-19 16:19:53 -04:00
parent c4e186c33c
commit 67e1598f91
+4 -3
View File
@@ -48,12 +48,13 @@
machine.wait_for_file("/home/alice/done")
with subtest("Systemd gives and removes device ownership as needed"):
machine.succeed("getfacl /dev/snd/timer | grep -q alice")
# Change back to /dev/snd/timer after systemd-258.1
machine.succeed("getfacl /dev/dri/card0 | grep -q alice")
machine.send_key("alt-f1")
machine.wait_until_succeeds("[ $(fgconsole) = 1 ]")
machine.fail("getfacl /dev/snd/timer | grep -q alice")
machine.fail("getfacl /dev/dri/card0 | grep -q alice")
machine.succeed("chvt 2")
machine.wait_until_succeeds("getfacl /dev/snd/timer | grep -q alice")
machine.wait_until_succeeds("getfacl /dev/dri/card0 | grep -q alice")
with subtest("Virtual console logout"):
machine.send_chars("exit\n")