Skip to content

Commit aedad33

Browse files
authored
Propagate env vars to sudo invocations. (GoogleCloudPlatform#248)
1 parent 2a891c2 commit aedad33

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

tools/ci-scripts/deploy_check.sh

+2-2
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'

tools/ci-scripts/integration-test.sh

+2-2
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)