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
...@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment