From 8011d8c62736f17e88487337e8637c3d208dbdcf Mon Sep 17 00:00:00 2001 From: Simon McVittie Date: Sun, 12 Jun 2016 10:51:11 +0100 Subject: [PATCH] libtest: make gpghome in tmpdir writeable Otherwise, during "make distcheck" it will be read-only (because it is a copy of the read-only ${srcdir} with permissions preserved), and deletion will fail during cleanup. Signed-off-by: Simon McVittie Closes: #337 Approved by: cgwalters --- tests/libtest.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/libtest.sh b/tests/libtest.sh index 3350cb20..16d5c0e0 100755 --- a/tests/libtest.sh +++ b/tests/libtest.sh @@ -69,6 +69,7 @@ export TEST_GPG_KEYID_3="DF444D67" # this by copying locally. echo "Copying gpghome to ${test_tmpdir}" cp -a "${test_srcdir}/gpghome" ${test_tmpdir} +chmod -R u+w "${test_tmpdir}" export TEST_GPG_KEYHOME=${test_tmpdir}/gpghome export OSTREE_GPG_HOME=${test_tmpdir}/gpghome/trusted