From 068ffa6039f537f0bca91b82ac77b6bbaae1769c Mon Sep 17 00:00:00 2001 From: Will Fancher Date: Sat, 14 Mar 2026 23:53:47 -0400 Subject: [PATCH] nixos/tests/systemd-coredump: Fix test 1ee2f0b0caeb0c126858307db96edd15ea1c64d8 broke this test because now the core file has the PID in the name, even when systemd-coredump is disabled. --- nixos/tests/systemd-coredump.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nixos/tests/systemd-coredump.nix b/nixos/tests/systemd-coredump.nix index 085e23f35ede..9ab7555279d1 100644 --- a/nixos/tests/systemd-coredump.nix +++ b/nixos/tests/systemd-coredump.nix @@ -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) ''; }