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

Improve pytest message when sanitizer report is found

This commit is contained in:
Tom Krizek
2023-08-09 17:49:27 +02:00
parent bc66bf146f
commit b1a9d1fe25

View File

@@ -587,7 +587,7 @@ else:
try: try:
shell("get_core_dumps.sh", [system_test_dir.name]) shell("get_core_dumps.sh", [system_test_dir.name])
except subprocess.CalledProcessError as exc: except subprocess.CalledProcessError as exc:
mlogger.error("Found core dumps") mlogger.error("Found core dumps or sanitizer reports")
pytest.fail(f"get_core_dumps.sh exited with {exc.returncode}") pytest.fail(f"get_core_dumps.sh exited with {exc.returncode}")
os.environ.update(env) # Ensure pytests have the same env vars as shell tests. os.environ.update(env) # Ensure pytests have the same env vars as shell tests.