From: Zbigniew Jędrzejewski-Szmek Date: Wed, 7 Jun 2023 08:05:02 +0000 (+0200) Subject: test_ukify: skip test requiring cryptography X-Git-Tag: v254-rc1~207^2~2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=13a29b0efb1a614f3d211ec083981b69bdd7edf1;p=thirdparty%2Fsystemd.git test_ukify: skip test requiring cryptography I'll add the dep in Fedora spec so it does get tested at least in some cases. --- diff --git a/src/ukify/test/test_ukify.py b/src/ukify/test/test_ukify.py index 2027d65ecd3..a6778bb694d 100755 --- a/src/ukify/test/test_ukify.py +++ b/src/ukify/test/test_ukify.py @@ -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'):