Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit b4754dd

Browse files
committed
Propagate env vars to sudo invocations.
1 parent 440934b commit b4754dd

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

scripts/deploy_check.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,11 @@ fi
1212

1313
cd ${KOKORO_GFILE_DIR}/appengine/integration_tests
1414

15-
sudo /usr/local/bin/pip install --upgrade -r requirements.txt
15+
sudo -E /usr/local/bin/pip install --upgrade -r requirements.txt
1616

1717
if [ -f ${KOKORO_GITHUB_DIR}/${SAMPLE_APP_DIRECTORY}/requirements.txt ]
1818
then
19-
sudo /usr/local/bin/pip install --upgrade -r ${KOKORO_GITHUB_DIR}/${SAMPLE_APP_DIRECTORY}/requirements.txt
19+
sudo -E /usr/local/bin/pip install --upgrade -r ${KOKORO_GITHUB_DIR}/${SAMPLE_APP_DIRECTORY}/requirements.txt
2020
fi
2121

2222
export DEPLOY_LATENCY_PROJECT='cloud-deploy-latency'

scripts/integration-test.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,11 @@ source ${KOKORO_GFILE_DIR}/kokoro/common.sh
77

88
export GOOGLE_CLOUD_PROJECT=gcp-runtimes
99

10-
sudo /usr/local/bin/pip install --upgrade -r ${KOKORO_GFILE_DIR}/appengine/integration_tests/requirements.txt
10+
sudo -E /usr/local/bin/pip install --upgrade -r ${KOKORO_GFILE_DIR}/appengine/integration_tests/requirements.txt
1111

1212
if [ -f ${KOKORO_GITHUB_DIR}/${SAMPLE_APP_DIRECTORY}/requirements.txt ]
1313
then
14-
sudo /usr/local/bin/pip install --upgrade -r ${KOKORO_GITHUB_DIR}/${SAMPLE_APP_DIRECTORY}/requirements.txt
14+
sudo -E /usr/local/bin/pip install --upgrade -r ${KOKORO_GITHUB_DIR}/${SAMPLE_APP_DIRECTORY}/requirements.txt
1515
fi
1616

1717
export GOPATH=${KOKORO_GITHUB_DIR}/${SAMPLE_APP_DIRECTORY}

0 commit comments

Comments
 (0)