diff options
| author | Donatas Abraitis <donatas@opensourcerouting.org> | 2023-12-22 09:32:32 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-12-22 09:32:32 +0200 |
| commit | eba1c1e23bd6f8cdba53de47f68112993e8fde77 (patch) | |
| tree | 19ec3591f00067e3eb488bc95fa8b19de8d0e494 /tests/topotests/conftest.py | |
| parent | 1225954fb6ead0a69c3f4f6871349b12655cb242 (diff) | |
| parent | daa80a5afa8b31248fa4395f7b86faee33eaec40 (diff) | |
Merge pull request #15059 from donaldsharp/generate_support_bundle_on_test_failure
Generate support bundle on test failure
Diffstat (limited to 'tests/topotests/conftest.py')
| -rwxr-xr-x | tests/topotests/conftest.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/tests/topotests/conftest.py b/tests/topotests/conftest.py index c63a67545e..b1f8d50d06 100755 --- a/tests/topotests/conftest.py +++ b/tests/topotests/conftest.py @@ -26,7 +26,7 @@ from munet.base import Commander, proc_error from munet.cleanup import cleanup_current, cleanup_previous from munet.config import ConfigOptionsProxy from munet.testing.util import pause_test - +from lib.common_config import generate_support_bundle from lib import topolog, topotest try: @@ -600,6 +600,10 @@ def pytest_runtest_setup(item): os.environ["PYTEST_TOPOTEST_SCRIPTDIR"] = script_dir +def pytest_exception_interact(node, call, report): + generate_support_bundle() + + def pytest_runtest_makereport(item, call): "Log all assert messages to default logger with error level" |
