| |
@@ -94,7 +94,7 @@
|
| |
outcome = yield
|
| |
report = outcome.get_result()
|
| |
extra = getattr(report, 'extra', [])
|
| |
- if report.when == 'call':
|
| |
+ if report.when == 'call' and pytest_html is not None:
|
| |
for f in glob.glob(f'{p.run_dir}/ns-slapd-*san*'):
|
| |
with open(f) as asan_report:
|
| |
text = asan_report.read()
|
| |
Bug Description: On systems without pytest_html the conftest
hook would cause tests to fail
Fix Description: If pytest_html is none, don't write the report
to avoid the failure.
https://pagure.io/389-ds-base/issue/50627
Author: William Brown william@blackhats.net.au
Review by: ???