diff --git a/test/units/testsuite-70.pcrextend.sh b/test/units/testsuite-70.pcrextend.sh index 0c391626c2..cae2d28fd9 100755 --- a/test/units/testsuite-70.pcrextend.sh +++ b/test/units/testsuite-70.pcrextend.sh @@ -14,6 +14,23 @@ if [[ ! -x "${SD_PCREXTEND:?}" ]] || ! tpm_has_pcr sha256 11 || ! tpm_has_pcr sh exit 0 fi +at_exit() { + if [[ $? -ne 0 ]]; then + # Dump the event log on fail, to make debugging a bit easier + jq --seq --slurp