1 |
commit: 63b9c1b3a7d0c5420f46a7ff31bf478d3fd3cbc1 |
2 |
Author: Fabian Groffen <grobian <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat May 25 13:49:30 2019 +0000 |
4 |
Commit: Fabian Groffen <grobian <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat May 25 13:49:30 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/proj/portage-utils.git/commit/?id=63b9c1b3 |
7 |
|
8 |
tests/qmanifest: enable GPGME debugging for Travis |
9 |
|
10 |
tests/qmanifest/dotest | 4 ++++ |
11 |
1 file changed, 4 insertions(+) |
12 |
|
13 |
diff --git a/tests/qmanifest/dotest b/tests/qmanifest/dotest |
14 |
index 4e8c66f..c248cae 100755 |
15 |
--- a/tests/qmanifest/dotest |
16 |
+++ b/tests/qmanifest/dotest |
17 |
@@ -16,6 +16,7 @@ test() { |
18 |
sed -i -e '/^checked [0-9]/s/ in [0-9.]\+s$//' manifest |
19 |
if ! diff -u ${as}/manifest${num}.good manifest; then |
20 |
tfail "output does not match" |
21 |
+ [[ -e gpgme.log ]] && cat gpgme.log |
22 |
fi |
23 |
if [[ ${exp} -ne ${ret} ]] ; then |
24 |
tfail "exit code (${ret}) does not match expected (${exp}) for test ${num}" |
25 |
@@ -54,9 +55,12 @@ rm testtree/my-cat/mypackage/unrecorded-file |
26 |
unset ROOT PORTAGE_CONFIGROOT |
27 |
SIGNAS=0x3D695C8C0F87966B62DC5AFCDCFABA8E07F52261 |
28 |
KEYPASS=qmanifest |
29 |
+export GPGME_DEBUG=9:${PWD}/gpgme.log |
30 |
+rm -f gpgme.log |
31 |
test 06 0 "echo ${KEYPASS} | qmanifest -g -s ${SIGNAS} -p testtree" |
32 |
|
33 |
# validate the just generated tree |
34 |
+rm -f gpgme.log |
35 |
test 07 0 "qmanifest testtree | sed -e '/Manifest timestamp/d' -e 's/made .* UTC by/made by/'" |
36 |
|
37 |
# shut down agents and whatnot |