mirror of
https://github.com/CHN-beta/nixpkgs.git
synced 2026-01-12 02:40:31 +08:00
nixosTests.systemd: modify test to use new error output from systemd 257
This commit is contained in:
@@ -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"):
|
||||
|
||||
Reference in New Issue
Block a user