From ee3031a01faf03107932ffbf09454bdcb1cebc14 Mon Sep 17 00:00:00 2001 From: Jared Baur Date: Wed, 11 Dec 2024 10:12:27 -0800 Subject: [PATCH] nixosTests.systemd: modify test to use new error output from systemd 257 --- nixos/tests/systemd.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nixos/tests/systemd.nix b/nixos/tests/systemd.nix index d8dc1998c03b..9e01aedca406 100644 --- a/nixos/tests/systemd.nix +++ b/nixos/tests/systemd.nix @@ -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"):