Skip to content

Commit

Permalink
log message only on test failure
Browse files Browse the repository at this point in the history
  • Loading branch information
saw-jan committed Sep 6, 2022
1 parent ba379d1 commit 562da25
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/gui/shared/scripts/bdd_hooks.py
Original file line number Diff line number Diff line change
Expand Up @@ -200,13 +200,13 @@ def hook(context):
# search coredumps after every test scenario
# CI pipeline might fail although all tests are passing
coredumps = getCoredumps()
if scenarioFailed() and coredumps:
if coredumps:
try:
generateStacktrace(context, coredumps)
test.log("Stacktrace generated!")
except Exception as err:
test.log("Exception occured:" + str(err))
else:
elif scenarioFailed():
test.log("No coredump found!")

# cleanup test server
Expand Down

0 comments on commit 562da25

Please sign in to comment.