mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-07-06 17:13:24 -05:00
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:
parent
d68202f306
commit
068ffa6039
1 changed files with 2 additions and 2 deletions
|
|
@ -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)
|
||||
'';
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue