From 5453daf9356076d5a0a89f9d1068556ac22ca0e0 Mon Sep 17 00:00:00 2001 From: Matthew Suozzo Date: Mon, 15 Aug 2022 17:46:27 -0400 Subject: [PATCH] Propagate env vars to sudo invocations. --- scripts/deploy-check-openjdk8.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/deploy-check-openjdk8.sh b/scripts/deploy-check-openjdk8.sh index c1dc78a9..e21167e8 100755 --- a/scripts/deploy-check-openjdk8.sh +++ b/scripts/deploy-check-openjdk8.sh @@ -20,11 +20,11 @@ EOF cd ${KOKORO_GFILE_DIR}/appengine/integration_tests -sudo /usr/local/bin/pip install --upgrade -r requirements.txt +sudo -E /usr/local/bin/pip install --upgrade -r requirements.txt if [ -f ${KOKORO_GITHUB_DIR}/${SAMPLE_APP_SOURCE_DIRECTORY}/requirements.txt ] then - sudo /usr/local/bin/pip install --upgrade -r ${KOKORO_GITHUB_DIR}/${SAMPLE_APP_SOURCE_DIRECTORY}/requirements.txt + sudo -E /usr/local/bin/pip install --upgrade -r ${KOKORO_GITHUB_DIR}/${SAMPLE_APP_SOURCE_DIRECTORY}/requirements.txt fi export DEPLOY_LATENCY_PROJECT='cloud-deploy-latency'