summaryrefslogtreecommitdiffstats
path: root/src/ukify
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2023-05-04 22:54:41 +0200
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2023-05-09 08:11:10 +0200
commit7d3d147c4ac5c2b388e459a238d7acbaa50a05bb (patch)
tree39649586bd3f3280b562f852fbdf01fe4a071a81 /src/ukify
parenttest-udev: add an optional timeout argument (diff)
downloadsystemd-7d3d147c4ac5c2b388e459a238d7acbaa50a05bb.tar.xz
systemd-7d3d147c4ac5c2b388e459a238d7acbaa50a05bb.zip
test_ukify: print message when skipping whole test file
Diffstat (limited to 'src/ukify')
-rwxr-xr-xsrc/ukify/test/test_ukify.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/ukify/test/test_ukify.py b/src/ukify/test/test_ukify.py
index d221825019..6853205958 100755
--- a/src/ukify/test/test_ukify.py
+++ b/src/ukify/test/test_ukify.py
@@ -18,13 +18,15 @@ import textwrap
try:
import pytest
-except ImportError:
+except ImportError as e:
+ print(str(e), file=sys.stderr)
sys.exit(77)
try:
# pyflakes: noqa
import pefile # noqa
-except ImportError:
+except ImportError as e:
+ print(str(e), file=sys.stderr)
sys.exit(77)
# We import ukify.py, which is a template file. But only __version__ is