Commit 67e1598f authored by Will Fancher's avatar Will Fancher
Browse files

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.
parent c4e186c3
Loading
Loading
Loading
Loading
+4 −3
Original line number Diff line number Diff line
@@ -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")