Skip to content

Commit

Permalink
tests: Use ${CERTTOOL} rather than certtool (OS X)
Browse files Browse the repository at this point in the history
On OS X we have to use ${CERTTOOL} rather than certtool to get
gnutls-certtool.

Signed-off-by: Stefan Berger <[email protected]>
  • Loading branch information
stefanberger committed Oct 13, 2024
1 parent 86e8f8b commit e159d26
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/test_tpm2_swtpm_cert
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ if ! ${SWTPM_CERT} \
echo "Error: ${SWTPM_CERT} failed with max. serial number."
exit 1
fi
tmp=$(certtool --certificate-info --infile "${cert}" |
tmp=$(${CERTTOOL} --certificate-info --infile "${cert}" |
sed -n 's/.*Serial Number.*: \([[:xdigit:]*]\)/\1/p')
exp="00ffffffffffffffffffffffffffffffffffffffff"
if [ "${tmp}" != "${exp}" ]; then
Expand Down

0 comments on commit e159d26

Please sign in to comment.