Commit 4d92ea11 authored by Peter Hutterer's avatar Peter Hutterer

tools: if pytest fails to import, skip the tool option parsing test

It's not the most important test outside of my machine and CI, so let's just
skip over it.
Signed-off-by: Peter Hutterer's avatarPeter Hutterer <peter.hutterer@who-t.net>
Tested-by: Michel Dänzer's avatarMichel Dänzer <mdaenzer@redhat.com>
parent b35a32dd
Pipeline #122175 passed with stages
in 22 minutes and 2 seconds
......@@ -24,12 +24,18 @@
# DEALINGS IN THE SOFTWARE.
import os
import pytest
import resource
import sys
import subprocess
import logging
try:
import pytest
except ImportError:
print('Failed to import pytest. Skipping.', file=sys.stderr)
sys.exit(77)
logger = logging.getLogger('test')
logger.setLevel(logging.DEBUG)
......
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