nixosTests.systemd: modify test to use new error output from systemd 257

This commit is contained in:
Jared Baur
2024-12-11 10:12:27 -08:00
parent 9f2a4d0f8e
commit ee3031a01f

View File

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