set -e source helpers.sh start_up CRYPTO_PROFILE="RSA" setup_fapi $CRYPTO_PROFILE function cleanup { # Since clean up should already been done during normal run of the test, a # failure is expected here. Therefore, we need to pass a successful # execution in any case tss2 delete --path=/ || true shut_down } trap cleanup EXIT tss2 provision PROFILE_NAME=$( tss2 list --searchPath=/ --pathList=- | cut -d "/" -f2 ) tss2 delete --path=/ expect <