Skip to content

Commit 277627c

Browse files
committed
ci,viavi: retry when interface not found
1 parent bf8848b commit 277627c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tests/e2e/tests/viavi.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
"""
1212
import logging
1313
import operator
14+
import sys
1415
from dataclasses import dataclass, field
1516
from pathlib import Path, PureWindowsPath
1617
from typing import Callable, List, Optional
@@ -579,7 +580,7 @@ def check_metrics_criteria(
579580
for criteria in criteria_result:
580581
if not criteria.is_ok:
581582
criteria_errors_str.append(criteria.criteria_name)
582-
if criteria_errors_str:
583+
if sys.exc_info()[0] is None and criteria_errors_str:
583584
pytest.fail("Test didn't pass the following criteria: " + ", ".join(criteria_errors_str))
584585

585586

0 commit comments

Comments
 (0)