Skip to content

Commit

Permalink
tests: do not wait on skipped tests
Browse files Browse the repository at this point in the history
When QUBES_TEST_WAIT_ON_FAIL=1 is set, do not wait if the test raises
SkipTest exception. It's an expected behavior, not a real failure.
  • Loading branch information
marmarek committed Dec 10, 2024
1 parent bff4812 commit 817e9fe
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions qubes/tests/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -269,6 +269,8 @@ def wait_on_fail(func):
def wrapper(self, *args, **kwargs):
try:
func(self, *args, **kwargs)
except unittest.case.SkipTest:
raise
except:
print("FAIL\n")
traceback.print_exc()
Expand Down

0 comments on commit 817e9fe

Please sign in to comment.