Commit 068ffa60 authored by Will Fancher's avatar Will Fancher
Browse files

nixos/tests/systemd-coredump: Fix test

1ee2f0b0 broke this test because now
the core file has the PID in the name, even when systemd-coredump is
disabled.
parent d68202f3
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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)
  '';
}