From d87106650286493af38cecd423b58bdcead15db4 Mon Sep 17 00:00:00 2001 From: "Lovett, Trevor" Date: Tue, 29 Oct 2019 11:33:26 -0500 Subject: [VVP] Make Preload Generation more reslient to failures Ensure that errors during preload do not prevent validation report creation Issue-ID: VVP-335 Signed-off-by: Lovett, Trevor Change-Id: I0cfd411b6a034422e349b96c462e68a4f0ceb876 --- ice_validator/tests/conftest.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'ice_validator/tests') diff --git a/ice_validator/tests/conftest.py b/ice_validator/tests/conftest.py index 3ef7fe1..9a839b5 100644 --- a/ice_validator/tests/conftest.py +++ b/ice_validator/tests/conftest.py @@ -348,7 +348,11 @@ def pytest_sessionfinish(session, exitstatus): def pytest_terminal_summary(terminalreporter, exitstatus): # Ensures all preload information and warnings appear after # test results - create_preloads(terminalreporter.config, exitstatus) + try: + create_preloads(terminalreporter.config, exitstatus) + except Exception: + print("Error creating preloads, skipping preload generation") + traceback.print_exc() # noinspection PyUnusedLocal -- cgit 1.2.3-korg