···128128 # it's not possible because we're not in a tty when grepping
129129 # (i.e. hacky way to ensure that the error from above doesn't appear here).
130130 _, out = machine.execute("systemctl --user edit testservice2.service 2>&1")
131131- assert out.rstrip("\n") == "Cannot edit units if not on a tty."
131131+ assert out.rstrip("\n") == "Cannot edit units interactively if not on a tty."
132132133133 # Regression test for https://github.com/NixOS/nixpkgs/issues/105049
134134 with subtest("systemd reads timezone database in /etc/zoneinfo"):