From 626556713a07d25a0830dbd8a5b1e9666dcbf98d Mon Sep 17 00:00:00 2001 From: Matthew Suozzo Date: Thu, 1 Sep 2022 12:25:18 -0400 Subject: [PATCH] Inherit env vars in sudo uses. --- appengine/runtime_builders/template_builder.sh | 2 +- hack/kokoro-test.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/appengine/runtime_builders/template_builder.sh b/appengine/runtime_builders/template_builder.sh index eef41786f..63c44c8fb 100644 --- a/appengine/runtime_builders/template_builder.sh +++ b/appengine/runtime_builders/template_builder.sh @@ -11,5 +11,5 @@ fi source "$KOKORO_GFILE_DIR/common.sh" cd github -yes | sudo pip3 install ruamel.yaml +yes | sudo -E pip3 install ruamel.yaml python3 runtimes-common/appengine/runtime_builders/template_builder.py -f "${KOKORO_GFILE_DIR}/${CONFIG_FILE}" diff --git a/hack/kokoro-test.sh b/hack/kokoro-test.sh index 01126c4e8..b69f2fc8e 100755 --- a/hack/kokoro-test.sh +++ b/hack/kokoro-test.sh @@ -15,7 +15,7 @@ fi pushd github/runtimes-common # Install deps. -sudo pip install --upgrade -r requirements.txt +sudo -E pip install --upgrade -r requirements.txt echo "Running unit tests..." # Run the tests.