Skip to content

Commit cbfb02d

Browse files
authored
Skip LogAnalyzer if testcase is skipped (#2191)
Currently, LogAnalyzer still analyze log file even test case is skipped, which may result in a confusing test result. This commit fix this issue
1 parent 7d99e36 commit cbfb02d

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

tests/common/plugins/loganalyzer/__init__.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,5 +27,7 @@ def loganalyzer(duthost, request):
2727
loganalyzer.load_common_config()
2828

2929
yield loganalyzer
30-
30+
# Skip LogAnalyzer if case is skipped
31+
if request.node.rep_call.skipped:
32+
return
3133
loganalyzer.analyze(marker)

0 commit comments

Comments
 (0)