diff options
author | Alexander Larsson <alexl@redhat.com> | 2016-05-18 10:26:11 +0200 |
---|---|---|
committer | Alexander Larsson <alexl@redhat.com> | 2016-05-18 10:26:11 +0200 |
commit | 1216e0ea68097c3745973e84b6e9caad741fdf63 (patch) | |
tree | a37f7bd466863e6bdf35c8439dd70c557ec76f70 | |
parent | d961290d40b98edc3726906b170823dabb4ac73a (diff) | |
download | xdg-app-1216e0ea68097c3745973e84b6e9caad741fdf63.tar.gz |
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.
-rw-r--r-- | tests/libtest.sh | 6 |
1 files changed, 5 insertions, 1 deletions
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}" |