From 68e7d8b47ad45f467dcd5d6242eed0befb6c8c37 Mon Sep 17 00:00:00 2001 From: Lars Wirzenius Date: Thu, 1 Jun 2017 18:13:33 +0300 Subject: Set GNUPGHOME for every scenario step, just in case --- yarns/obnam.sh | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'yarns/obnam.sh') 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() -- cgit v1.2.1