[CI] Add hook to catch exceptions in test_info.error to trigger pytest errors See merge request !2134