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:
@@ -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.
|
||||||
|
Reference in New Issue
Block a user