From 89c77daddb208b656e217d7f79d9f539ff1e8980 Mon Sep 17 00:00:00 2001 From: Michal Nowak Date: Tue, 11 Jul 2023 14:04:12 +0200 Subject: [PATCH] Detect core dumps after BIND failed to stop cleanly With the pytest runner, when BIND crashed during test runtime, the get_core_dumps.sh script hasn't been run, and core dumps were not detected. --- bin/tests/system/conftest.py | 1 + 1 file changed, 1 insertion(+) diff --git a/bin/tests/system/conftest.py b/bin/tests/system/conftest.py index 9294198ba1..31ad1174e9 100644 --- a/bin/tests/system/conftest.py +++ b/bin/tests/system/conftest.py @@ -581,6 +581,7 @@ else: perl("stop.pl", [system_test_dir.name]) except subprocess.CalledProcessError as exc: mlogger.error("Failed to stop servers") + get_core_dumps() pytest.fail(f"stop.pl exited with {exc.returncode}") def get_core_dumps():