summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2017-06-01 18:13:33 +0300
committerLars Wirzenius <liw@liw.fi>2017-06-01 18:13:33 +0300
commit68e7d8b47ad45f467dcd5d6242eed0befb6c8c37 (patch)
treea2ac904b398fd87d3c498f7de241ec4f153db3ae
parent3544300e5a08efd27c40d43a70e0f681743b9dce (diff)
downloadobnam-68e7d8b47ad45f467dcd5d6242eed0befb6c8c37.tar.gz
Set GNUPGHOME for every scenario step, just in case
-rw-r--r--yarns/obnam.sh8
1 files changed, 8 insertions, 0 deletions
diff --git a/yarns/obnam.sh b/yarns/obnam.sh
index 9eb5ea90..3d0a1b20 100644
--- a/yarns/obnam.sh
+++ b/yarns/obnam.sh
@@ -16,6 +16,14 @@
# =*= License: GPL-3+ =*=
+# Set GNUPGHOME so that we always a) use a safe gnupg dir and b) it's a
+# copy of the test dir.
+
+GNUPGHOME="$DATADIR/dot-gnupg"
+mkdir -p "$GNUPGHOME"
+rsync -a --delete "$SRCDIR/test-gpghome/." "$GNUPGHOME/."
+
+
# A helper to print an error message and terminate.
die()