From ac97eca09e9f75289f5c8be02034c7ead3491d9c Mon Sep 17 00:00:00 2001 From: Mario Limonciello Date: Mon, 14 Oct 2019 10:50:27 -0500 Subject: [PATCH] trivial: fix TPM2 simulator tests for arch The simulator has PCR values that are not yet initialized. So use the Intel TPM tools to extend the PCR0 value before running test suite --- contrib/ci/arch.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/contrib/ci/arch.sh b/contrib/ci/arch.sh index b5bdf6c06..2b20bc704 100755 --- a/contrib/ci/arch.sh +++ b/contrib/ci/arch.sh @@ -13,9 +13,12 @@ popd chown nobody . -R # install and run TPM simulator necessary for plugins/uefi/uefi-self-test -pacman -S --noconfirm ibm-sw-tpm2 +pacman -S --noconfirm ibm-sw-tpm2 tpm2-tools tpm_server & trap "kill $!" EXIT +# extend a PCR0 value for test suite +tpm2_startup -c +tpm2_pcrextend 0:sha1=f1d2d2f924e986ac86fdf7b36c94bcdf32beec15 export TPM_SERVER_RUNNING=1 # build the package and install it