2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-08-30 14:07:59 +00:00

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.
This commit is contained in:
Michal Nowak
2023-07-11 14:04:12 +02:00
parent dd3c7e4ecb
commit 89c77daddb

View File

@@ -581,6 +581,7 @@ else:
perl("stop.pl", [system_test_dir.name]) perl("stop.pl", [system_test_dir.name])
except subprocess.CalledProcessError as exc: except subprocess.CalledProcessError as exc:
mlogger.error("Failed to stop servers") mlogger.error("Failed to stop servers")
get_core_dumps()
pytest.fail(f"stop.pl exited with {exc.returncode}") pytest.fail(f"stop.pl exited with {exc.returncode}")
def get_core_dumps(): def get_core_dumps():