summaryrefslogtreecommitdiff
path: root/secrets/test/common.sh
diff options
context:
space:
mode:
Diffstat (limited to 'secrets/test/common.sh')
-rwxr-xr-xsecrets/test/common.sh2
1 files changed, 2 insertions, 0 deletions
diff --git a/secrets/test/common.sh b/secrets/test/common.sh
index 33d7d78..a751f65 100755
--- a/secrets/test/common.sh
+++ b/secrets/test/common.sh
@@ -18,6 +18,8 @@ skip() { echo -e "${YELLOW}SKIP${NC}: $1"; }
# Create temporary test environment
setup() {
export TEST_DIR="$(mktemp -d)"
+ # Never the real data dir: the buckets and identity there are a host's own.
+ export XDG_DATA_HOME="${TEST_DIR}/xdg"
export SZECRET_STORE="${TEST_DIR}/store"
export SZECRET_PUBLIC_KEY="${TEST_DIR}/.id.pub"
export SZECRET_PRIVATE_KEY="${TEST_DIR}/.id"