From 1216e0ea68097c3745973e84b6e9caad741fdf63 Mon Sep 17 00:00:00 2001 From: Alexander Larsson Date: Wed, 18 May 2016 10:26:11 +0200 Subject: tests: Fix distcheck breaking on gpg dir not writable We make a copy of the gpg homedir so that gpg can write (e.g. a lock file) to the directory. --- tests/libtest.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'tests') diff --git a/tests/libtest.sh b/tests/libtest.sh index aeae41c..17831bf 100644 --- a/tests/libtest.sh +++ b/tests/libtest.sh @@ -156,7 +156,11 @@ assert_file_empty() { fi } -export FL_GPG_HOMEDIR=$(dirname $0)/test-keyring +export FL_GPG_HOMEDIR=${TEST_DATA_DIR}/gpghome +mkdir -p ${FL_GPG_HOMEDIR} +# This need to be writable, so copy the keys +cp $(dirname $0)/test-keyring/*.gpg ${FL_GPG_HOMEDIR}/ + export FL_GPG_ID=7B0961FD export FL_GPGARGS="--gpg-homedir=${FL_GPG_HOMEDIR} --gpg-sign=${FL_GPG_ID}" -- cgit v1.2.1