[CI] Add hook to catch exceptions in test_info.error to trigger pytest errors
- Related issues: None
- Requested reviewers: @kiene (but not highest prio)
Reason why this change is needed
- Raised exceptions, e.g. from an error in the wav-diff tool, do not trigger a pytest error. Since many jobs fail with warnings in the BASOP CI, this may lead to undetected errors in the tests. This has happened when wrong format was used in the write-out of temporary files, or when the wav-diff has triggered an error due to file length issues.
Description of the change
- A hook is added to set the test_info.error variable in case of exceptions. This triggers a pytest error.
Affected operating points
- Testing only, but may uncover undetected errors if there are any.