Skip to content

Commit 91ef703

Browse files
mrc0mmandbluca
authored andcommitted
ukify: make the test happy with the latest OpenSSL
Which dropped some whitespaces in the output: $ openssl version OpenSSL 3.2.0 23 Nov 2023 (Library: OpenSSL 3.2.0 23 Nov 2023) $ openssl x509 -in cert.pem -text -noout | grep Issuer Issuer: C=AU, ST=Some-State, O=Internet Widgits Pty Ltd $ openssl version OpenSSL 3.0.9 30 May 2023 (Library: OpenSSL 3.0.9 30 May 2023) $ openssl x509 -in cert.pem -text -noout | grep Issuer Issuer: C = XX, L = Default City, O = Default Company Ltd Making test-ukify unhappy: > assert 'Issuer: CN = SecureBoot signing key on host' in out E AssertionError: assert 'Issuer: CN = SecureBoot signing key on host' in '<...snip...>Issuer: CN=SecureBoot signing key on host archlinux2\n...' (cherry picked from commit 338ed5b) (cherry picked from commit 08b18ee)
1 parent a9f1b33 commit 91ef703

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ukify/test/test_ukify.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -801,7 +801,7 @@ def test_key_cert_generation(tmp_path):
801801
'-noout',
802802
], text = True)
803803
assert 'Certificate' in out
804-
assert 'Issuer: CN = SecureBoot signing key on host' in out
804+
assert re.search('Issuer: CN\s?=\s?SecureBoot signing key on host', out)
805805

806806
if __name__ == '__main__':
807807
sys.exit(pytest.main(sys.argv))

0 commit comments

Comments
 (0)