Skip to content

Commit 4edf585

Browse files
authored
test: create and delete temp folder in scripts (#1869)
1 parent 5c372a9 commit 4edf585

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

scripts/decrypt-secrets.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,10 @@ ROOT=$( dirname "$DIR" )
2020
# Work from the project root.
2121
cd $ROOT
2222

23+
# Create working directory if not exists. system_tests/data is not tracked by
24+
# Git to prevent the secrets from being leaked online.
25+
mkdir -p system_tests/data
26+
2327
gcloud kms decrypt \
2428
--location=global \
2529
--keyring=ci \

scripts/encrypt-secrets.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,4 +29,6 @@ gcloud kms encrypt \
2929
--plaintext-file=system_tests/secrets.tar \
3030
--ciphertext-file=system_tests/secrets.tar.enc
3131

32-
rm system_tests/secrets.tar
32+
rm system_tests/secrets.tar
33+
34+
rm system_tests/data

0 commit comments

Comments
 (0)