summaryrefslogtreecommitdiff
path: root/secrets/test
diff options
context:
space:
mode:
Diffstat (limited to 'secrets/test')
-rwxr-xr-xsecrets/test/common.sh3
1 files changed, 3 insertions, 0 deletions
diff --git a/secrets/test/common.sh b/secrets/test/common.sh
index a751f65..7e4280d 100755
--- a/secrets/test/common.sh
+++ b/secrets/test/common.sh
@@ -19,6 +19,9 @@ skip() { echo -e "${YELLOW}SKIP${NC}: $1"; }
setup() {
export TEST_DIR="$(mktemp -d)"
# Never the real data dir: the buckets and identity there are a host's own.
+ # Nor any store the caller's environment points at: a run with
+ # SZECRET_BUCKETS set wrote its test values into cloud-setup's admin-only.
+ unset SZECRET_BUCKETS SZECRET_IDENTITY SZECRET_ADMINS_COMMAND SZECRET_PRIVATE_KEY_DIR
export XDG_DATA_HOME="${TEST_DIR}/xdg"
export SZECRET_STORE="${TEST_DIR}/store"
export SZECRET_PUBLIC_KEY="${TEST_DIR}/.id.pub"