Gentoo Archives: gentoo-commits

From: Fabian Groffen <grobian@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/portage-utils:master commit in: tests/qmanifest/
Date: Sat, 25 May 2019 16:58:56
Message-Id: 1558803458.5b2115597e4143cea0eef2aa7b3a062ddb122073.grobian@gentoo
1 commit: 5b2115597e4143cea0eef2aa7b3a062ddb122073
2 Author: Fabian Groffen <grobian <AT> gentoo <DOT> org>
3 AuthorDate: Sat May 25 16:57:38 2019 +0000
4 Commit: Fabian Groffen <grobian <AT> gentoo <DOT> org>
5 CommitDate: Sat May 25 16:57:38 2019 +0000
6 URL: https://gitweb.gentoo.org/proj/portage-utils.git/commit/?id=5b211559
7
8 tests/qmanifest: give up on Travis
9
10 Debuntu is just toooooooo old.
11
12 Signed-off-by: Fabian Groffen <grobian <AT> gentoo.org>
13
14 tests/qmanifest/dotest | 15 ++++++++-------
15 1 file changed, 8 insertions(+), 7 deletions(-)
16
17 diff --git a/tests/qmanifest/dotest b/tests/qmanifest/dotest
18 index 9587141..fcb5bf0 100755
19 --- a/tests/qmanifest/dotest
20 +++ b/tests/qmanifest/dotest
21 @@ -42,6 +42,10 @@ test 04 1 "qmanifest -d not_a_tree"
22 # overlay test
23 test 05 1 "qmanifest -o notatree"
24
25 +# Travis uses old Ubuntu, and Ubuntu uses prehistoric gpg, which just
26 +# won't work. Too bad, really.
27 +if [[ ${TRAVIS_OS_NAME} != Linux ]] ; then
28 +
29 # generate a valid tree
30 rm -Rf testtree
31 cp -r "${ROOT}/simpletree" testtree || echo try it anyway
32 @@ -58,16 +62,11 @@ gpg_import() {
33 --quiet
34 --no-tty
35 --passphrase-fd 0
36 + --pinentry-mode loopback
37 --import "${key}"
38 )
39 - local killpinentry="--pinentry-mode loopback"
40
41 - # see if gpg is new enough for killpinentry
42 - if echo "${pass}" | gpg -n ${killpinentry} "${args[@]}" ; then
43 - echo "${pass}" | gpg ${killpinentry} "${args[@]}"
44 - else
45 - echo "${pass}" | gpg "${args[@]}"
46 - fi
47 + echo "${pass}" | gpg "${args[@]}"
48 }
49 # import key
50 gpg_import "${as}"/key.gpg qmanifest
51 @@ -90,6 +89,8 @@ test 07 0 "qmanifest testtree | sed -e '/Manifest timestamp/d' -e 's/made .* UTC
52 gpgconf --kill all
53 rm -Rf "${HOME}"
54
55 +fi # TRAVIS_OS_NAME==Linux
56 +
57 cleantmpdir
58
59 end