From 5b2115597e4143cea0eef2aa7b3a062ddb122073 Mon Sep 17 00:00:00 2001 From: Fabian Groffen Date: Sat, 25 May 2019 18:57:38 +0200 Subject: tests/qmanifest: give up on Travis Debuntu is just toooooooo old. Signed-off-by: Fabian Groffen --- tests/qmanifest/dotest | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) (limited to 'tests') diff --git a/tests/qmanifest/dotest b/tests/qmanifest/dotest index 9587141..fcb5bf0 100755 --- a/tests/qmanifest/dotest +++ b/tests/qmanifest/dotest @@ -42,6 +42,10 @@ test 04 1 "qmanifest -d not_a_tree" # overlay test test 05 1 "qmanifest -o notatree" +# Travis uses old Ubuntu, and Ubuntu uses prehistoric gpg, which just +# won't work. Too bad, really. +if [[ ${TRAVIS_OS_NAME} != Linux ]] ; then + # generate a valid tree rm -Rf testtree cp -r "${ROOT}/simpletree" testtree || echo try it anyway @@ -58,16 +62,11 @@ gpg_import() { --quiet --no-tty --passphrase-fd 0 + --pinentry-mode loopback --import "${key}" ) - local killpinentry="--pinentry-mode loopback" - # see if gpg is new enough for killpinentry - if echo "${pass}" | gpg -n ${killpinentry} "${args[@]}" ; then - echo "${pass}" | gpg ${killpinentry} "${args[@]}" - else - echo "${pass}" | gpg "${args[@]}" - fi + echo "${pass}" | gpg "${args[@]}" } # import key gpg_import "${as}"/key.gpg qmanifest @@ -90,6 +89,8 @@ test 07 0 "qmanifest testtree | sed -e '/Manifest timestamp/d' -e 's/made .* UTC gpgconf --kill all rm -Rf "${HOME}" +fi # TRAVIS_OS_NAME==Linux + cleantmpdir end -- cgit v1.2.3-65-gdbad