Skip to content

Commit 4e3657b

Browse files
author
Takashi Matsuo
committed
remove secret if we used decrypt-secrets.sh before the test
1 parent 2e143a0 commit 4e3657b

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

.kokoro/tests/run_tests.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -175,4 +175,9 @@ for file in **/requirements.txt; do
175175
done
176176
cd "$ROOT"
177177

178+
# Remove secrets if we used decrypt-secrets.sh.
179+
if [[ -f "${KOKORO_GFILE_DIR}/secrets_viewer_service_account.json" ]]; then
180+
rm testing/{test-env.sh,client-secrets.json,service-account.json}
181+
fi
182+
178183
exit "$RTN"

0 commit comments

Comments
 (0)