aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorFabian Groffen <grobian@gentoo.org>2019-05-25 15:49:30 +0200
committerFabian Groffen <grobian@gentoo.org>2019-05-25 15:49:30 +0200
commit63b9c1b3a7d0c5420f46a7ff31bf478d3fd3cbc1 (patch)
tree1d60e56caee147b849bcb9b6591ee74e741d7b0a /tests
parenttests/qmanifest: move GNUPG homedir to TMPDIR (diff)
downloadportage-utils-63b9c1b3a7d0c5420f46a7ff31bf478d3fd3cbc1.tar.gz
portage-utils-63b9c1b3a7d0c5420f46a7ff31bf478d3fd3cbc1.tar.bz2
portage-utils-63b9c1b3a7d0c5420f46a7ff31bf478d3fd3cbc1.zip
tests/qmanifest: enable GPGME debugging for Travis
Diffstat (limited to 'tests')
-rwxr-xr-xtests/qmanifest/dotest4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/qmanifest/dotest b/tests/qmanifest/dotest
index 4e8c66fe..c248cae2 100755
--- a/tests/qmanifest/dotest
+++ b/tests/qmanifest/dotest
@@ -16,6 +16,7 @@ test() {
sed -i -e '/^checked [0-9]/s/ in [0-9.]\+s$//' manifest
if ! diff -u ${as}/manifest${num}.good manifest; then
tfail "output does not match"
+ [[ -e gpgme.log ]] && cat gpgme.log
fi
if [[ ${exp} -ne ${ret} ]] ; then
tfail "exit code (${ret}) does not match expected (${exp}) for test ${num}"
@@ -54,9 +55,12 @@ rm testtree/my-cat/mypackage/unrecorded-file
unset ROOT PORTAGE_CONFIGROOT
SIGNAS=0x3D695C8C0F87966B62DC5AFCDCFABA8E07F52261
KEYPASS=qmanifest
+export GPGME_DEBUG=9:${PWD}/gpgme.log
+rm -f gpgme.log
test 06 0 "echo ${KEYPASS} | qmanifest -g -s ${SIGNAS} -p testtree"
# validate the just generated tree
+rm -f gpgme.log
test 07 0 "qmanifest testtree | sed -e '/Manifest timestamp/d' -e 's/made .* UTC by/made by/'"
# shut down agents and whatnot