]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
test_ukify: skip test requiring cryptography
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Wed, 7 Jun 2023 08:05:02 +0000 (10:05 +0200)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Wed, 14 Jun 2023 11:18:00 +0000 (13:18 +0200)
I'll add the dep in Fedora spec so it does get tested at least
in some cases.

src/ukify/test/test_ukify.py

index 2027d65ecd33c1c45fd48632b0f3394d0c421657..a6778bb694da77b417168a26d15f9ddb3c161bad 100755 (executable)
@@ -713,6 +713,9 @@ def test_key_cert_generation(tmpdir):
     ])
     assert opts.verb == 'genkey'
     ukify.check_cert_and_keys_nonexistent(opts)
+
+    pytest.importorskip('cryptography')
+
     ukify.generate_keys(opts)
 
     if not shutil.which('openssl'):