diff options
Diffstat (limited to 'tests')
-rwxr-xr-x | tests/qmanifest/dotest | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/qmanifest/dotest b/tests/qmanifest/dotest index 9d28133..4e8c66f 100755 --- a/tests/qmanifest/dotest +++ b/tests/qmanifest/dotest @@ -44,9 +44,10 @@ test 05 1 "qmanifest -o notatree" # generate a valid tree rm -Rf testtree cp -r "${ROOT}/simpletree" testtree || echo try it anyway -export HOME=${ROOT} # for gnupg home +export HOME=$(mktemp -d) # for gnupg home +cp -r "${ROOT}/.gnupg" "${HOME}/" # silence gpg warnings -chmod -R og-rwx "${ROOT}"/.gnupg +chmod -R og-rwx "${HOME}"/.gnupg # make it a fully valid tree rm testtree/my-cat/mypackage/unrecorded-file # drop ROOT, we'll work here in T @@ -60,6 +61,7 @@ test 07 0 "qmanifest testtree | sed -e '/Manifest timestamp/d' -e 's/made .* UTC # shut down agents and whatnot gpgconf --kill all +rm -Rf "${HOME}" cleantmpdir |