[ostree] tests: Move test gpg keyring into writable tmpdir
- From: Colin Walters <walters src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [ostree] tests: Move test gpg keyring into writable tmpdir
- Date: Mon, 23 Feb 2015 20:21:32 +0000 (UTC)
commit 2f205331f4316a1068a02ba01e9c9322c374c6b0
Author: Colin Walters <walters verbum org>
Date: Mon Feb 23 13:02:37 2015 -0500
tests: Move test gpg keyring into writable tmpdir
At least the version of gpgme in RHEL7 wants to create a lock file,
work around this by copying it into the writable test temporary
directory.
tests/libtest.sh | 9 +++++++--
1 files changed, 7 insertions(+), 2 deletions(-)
---
diff --git a/tests/libtest.sh b/tests/libtest.sh
index 5abbedf..905c8cb 100644
--- a/tests/libtest.sh
+++ b/tests/libtest.sh
@@ -23,8 +23,13 @@ test_tmpdir=$(pwd)
export G_DEBUG=fatal-warnings
export TEST_GPG_KEYID="472CDAFA"
-export TEST_GPG_KEYHOME=${SRCDIR}/gpghome
-export OSTREE_GPG_HOME=${TEST_GPG_KEYHOME}/trusted
+
+# GPG when creating signatures demands a writable
+# homedir in order to create lockfiles. Work around
+# this by copying locally.
+cp -a ${SRCDIR}/gpghome ${test_tmpdir}
+export TEST_GPG_KEYHOME=${test_tmpdir}/gpghome
+export OSTREE_GPG_HOME=${test_tmpdir}/gpghome/trusted
if test -n "${OT_TESTS_DEBUG}"; then
set -x
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]