nixos/tests/systemd-coredump: Fix test

1ee2f0b0ca broke this test because now
the core file has the PID in the name, even when systemd-coredump is
disabled.
This commit is contained in:
Will Fancher 2026-03-14 23:53:47 -04:00
commit 068ffa6039

View file

@ -37,10 +37,10 @@ in
machine1.wait_for_unit("systemd-coredump.socket")
machine1.systemctl("start crasher");
machine1.wait_until_succeeds("coredumpctl list | grep crasher", timeout=10)
machine1.fail("stat /var/lib/crasher/core")
machine1.fail("stat /var/lib/crasher/core*")
with subtest("systemd-coredump disabled"):
machine2.systemctl("start crasher");
machine2.wait_until_succeeds("stat /var/lib/crasher/core", timeout=10)
machine2.wait_until_succeeds("stat /var/lib/crasher/core*", timeout=10)
'';
}