Skip to content

Commit 93759e2

Browse files
mrc0mmandjamacku
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) Resolves: RHEL-34061
1 parent a892400 commit 93759e2

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
@@ -850,7 +850,7 @@ def test_key_cert_generation(tmpdir):
850850
'-noout',
851851
], text = True)
852852
assert 'Certificate' in out
853-
assert 'Issuer: CN = SecureBoot signing key on host' in out
853+
assert re.search('Issuer: CN\s?=\s?SecureBoot signing key on host', out)
854854

855855
if __name__ == '__main__':
856856
sys.exit(pytest.main(sys.argv))

0 commit comments

Comments
 (0)