1 |
commit: 5db00ff1e743cc7383849cea9434a7d5df3b80e0 |
2 |
Author: Fabian Groffen <grobian <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat May 25 13:35:37 2019 +0000 |
4 |
Commit: Fabian Groffen <grobian <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat May 25 13:35:37 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/proj/portage-utils.git/commit/?id=5db00ff1 |
7 |
|
8 |
tests/qmanifest: move GNUPG homedir to TMPDIR |
9 |
|
10 |
Hopefully, TMPDIR is shorter than our T. gpgme is pretty annoying when |
11 |
it comes to paths, it often considers a path to be too long, so we need |
12 |
to keep it to a minimum. |
13 |
|
14 |
Signed-off-by: Fabian Groffen <grobian <AT> gentoo.org> |
15 |
|
16 |
tests/qmanifest/dotest | 6 ++++-- |
17 |
1 file changed, 4 insertions(+), 2 deletions(-) |
18 |
|
19 |
diff --git a/tests/qmanifest/dotest b/tests/qmanifest/dotest |
20 |
index 9d28133..4e8c66f 100755 |
21 |
--- a/tests/qmanifest/dotest |
22 |
+++ b/tests/qmanifest/dotest |
23 |
@@ -44,9 +44,10 @@ test 05 1 "qmanifest -o notatree" |
24 |
# generate a valid tree |
25 |
rm -Rf testtree |
26 |
cp -r "${ROOT}/simpletree" testtree || echo try it anyway |
27 |
-export HOME=${ROOT} # for gnupg home |
28 |
+export HOME=$(mktemp -d) # for gnupg home |
29 |
+cp -r "${ROOT}/.gnupg" "${HOME}/" |
30 |
# silence gpg warnings |
31 |
-chmod -R og-rwx "${ROOT}"/.gnupg |
32 |
+chmod -R og-rwx "${HOME}"/.gnupg |
33 |
# make it a fully valid tree |
34 |
rm testtree/my-cat/mypackage/unrecorded-file |
35 |
# drop ROOT, we'll work here in T |
36 |
@@ -60,6 +61,7 @@ test 07 0 "qmanifest testtree | sed -e '/Manifest timestamp/d' -e 's/made .* UTC |
37 |
|
38 |
# shut down agents and whatnot |
39 |
gpgconf --kill all |
40 |
+rm -Rf "${HOME}" |
41 |
|
42 |
cleantmpdir |