Skip to content
Snippets Groups Projects
Unverified Commit f584fa23 authored by Mattia Rizzolo's avatar Mattia Rizzolo
Browse files

tests: with DIFFOSCOPE_TESTS_FAIL_ON_MISSING_TOOLS=1, actually fail only tests...

tests: with DIFFOSCOPE_TESTS_FAIL_ON_MISSING_TOOLS=1, actually fail only tests that are missing the required tools

Signed-off-by: Mattia Rizzolo's avatarMattia Rizzolo <mattia@debian.org>
parent 3d742408
No related branches found
No related tags found
No related merge requests found
...@@ -73,7 +73,8 @@ def skipif(*args, **kwargs): ...@@ -73,7 +73,8 @@ def skipif(*args, **kwargs):
# executed. # executed.
def outer(*args1, **kwargs1): def outer(*args1, **kwargs1):
def inner(*args2, **kwargs2): def inner(*args2, **kwargs2):
return pytest.fail(msg) if args[0]: # i.e. the condition of the skipif() is True
return pytest.fail(msg)
return inner return inner
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment