Skip to content
Merged
Prev Previous commit
Next Next commit
False XFail message has 'info' status [not warning]
Let's do not use error/warning for internal messages.
  • Loading branch information
dmitry-lipetsk committed Apr 1, 2025
commit 202e526f6d392afe1bc51d404dfc1b6f1e61f643
4 changes: 2 additions & 2 deletions tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -446,12 +446,12 @@ def helper__makereport__call(

TEST_PROCESS_STATS.incrementNotXFailedTests(testID)

warnMsg = "Test is marked as xfail"
warnMsg = "NOTE: Test is marked as xfail"

if rep.wasxfail != "":
warnMsg += " [" + rep.wasxfail + "]"

logging.warning(warnMsg)
logging.info(warnMsg)
exitStatus = "NOT XFAILED"
else:
assert not hasattr(rep, "wasxfail")
Expand Down