From a1d8b071b9aab0ba46f694655685cebe2d77322c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20Marczykowski-G=C3=B3recki?= Date: Fri, 6 Dec 2024 15:33:26 +0100 Subject: [PATCH] tests: do not wait on skipped tests 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. --- qubes/tests/__init__.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/qubes/tests/__init__.py b/qubes/tests/__init__.py index c9f4f4969..1fd5894df 100644 --- a/qubes/tests/__init__.py +++ b/qubes/tests/__init__.py @@ -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()