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.
tingping/wmclass
Alexander Larsson 2016-05-18 10:26:11 +02:00
parent d961290d40
commit 1216e0ea68
1 changed files with 5 additions and 1 deletions

View File

@ -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}"