mirror of
https://gitlab.freedesktop.org/libinput/libinput.git
synced 2025-12-29 09:00:08 +01:00
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 <peter.hutterer@who-t.net> Tested-by: Michel Dänzer <mdaenzer@redhat.com>
This commit is contained in:
parent
b35a32dd9d
commit
4d92ea116c
1 changed files with 7 additions and 1 deletions
|
|
@ -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)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue