From 67e1598f9133bfa73e6641dd37607d14b7cfc993 Mon Sep 17 00:00:00 2001 From: Will Fancher Date: Sun, 19 Oct 2025 16:16:01 -0400 Subject: [PATCH] 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. --- nixos/tests/login.nix | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/nixos/tests/login.nix b/nixos/tests/login.nix index bd0d3b7bc005..ab80b8aaabf0 100644 --- a/nixos/tests/login.nix +++ b/nixos/tests/login.nix @@ -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")