]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Detect core dumps after BIND failed to stop cleanly
authorMichal Nowak <mnowak@isc.org>
Tue, 11 Jul 2023 12:04:12 +0000 (14:04 +0200)
committerMichal Nowak <mnowak@isc.org>
Thu, 13 Jul 2023 13:09:55 +0000 (15:09 +0200)
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

index 9294198ba19dbee3515b7eebc8476937b08a8536..31ad1174e910b4f18628488ca4bf6aa6524da59e 100644 (file)
@@ -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():