diff --git a/tools/configure_for_func_testing.sh b/tools/configure_for_func_testing.sh index 684e4902610..d434af4d096 100755 --- a/tools/configure_for_func_testing.sh +++ b/tools/configure_for_func_testing.sh @@ -19,6 +19,7 @@ set -e # Control variable used to determine whether to execute this script # directly or allow the gate_hook to import. IS_GATE=${IS_GATE:-False} +USE_CONSTRAINT_ENV=${USE_CONSTRAINT_ENV:-True} if [[ "$IS_GATE" != "True" ]] && [[ "$#" -lt 1 ]]; then @@ -51,7 +52,7 @@ done # when sourcing. VENV=${VENV:-dsvm-functional} # If executed in the gate, run in a constrained env -if [[ "$IS_GATE" == "True" ]] +if [[ "$IS_GATE" == "True" && "$USE_CONSTRAINT_ENV" == "True" ]] then VENV=$VENV-constraints fi