We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bf8848b commit 277627cCopy full SHA for 277627c
tests/e2e/tests/viavi.py
@@ -11,6 +11,7 @@
11
"""
12
import logging
13
import operator
14
+import sys
15
from dataclasses import dataclass, field
16
from pathlib import Path, PureWindowsPath
17
from typing import Callable, List, Optional
@@ -579,7 +580,7 @@ def check_metrics_criteria(
579
580
for criteria in criteria_result:
581
if not criteria.is_ok:
582
criteria_errors_str.append(criteria.criteria_name)
- if criteria_errors_str:
583
+ if sys.exc_info()[0] is None and criteria_errors_str:
584
pytest.fail("Test didn't pass the following criteria: " + ", ".join(criteria_errors_str))
585
586
0 commit comments