diff --git a/integ/scripts/bash/rfdk-integ-e2e.sh b/integ/scripts/bash/rfdk-integ-e2e.sh index 80d904222..19463fc82 100755 --- a/integ/scripts/bash/rfdk-integ-e2e.sh +++ b/integ/scripts/bash/rfdk-integ-e2e.sh @@ -73,6 +73,12 @@ export INFRASTRUCTURE_DEPLOY_FINISH_TIME=$SECONDS for COMPONENT in **/cdk.json; do COMPONENT_ROOT="$(dirname "$COMPONENT")" COMPONENT_NAME=$(basename "$COMPONENT_ROOT") + # Invoke hook function if it is exported and name is defined in PRE_COMPONENT_HOOK variable + if [ -n "$PRE_COMPONENT_HOOK" ] && [ "$(type -t $PRE_COMPONENT_HOOK)" == "function" ] + then + $PRE_COMPONENT_HOOK $COMPONENT_NAME + fi + # Use a pattern match to exclude the infrastructure app from the results export ${COMPONENT_NAME}_START_TIME=$SECONDS if [[ "$COMPONENT_NAME" != _* ]]; then