From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id CF92F138334 for ; Thu, 13 Jun 2019 11:26:21 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id F260EE08AE; Thu, 13 Jun 2019 11:26:20 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 9B897E08AE for ; Thu, 13 Jun 2019 11:26:20 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id CBB49345FFF for ; Thu, 13 Jun 2019 11:26:18 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 3B79F608 for ; Thu, 13 Jun 2019 11:26:17 +0000 (UTC) From: "Fabian Groffen" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Fabian Groffen" Message-ID: <1560425062.bcbcec8baad9790b8df4da526ad2d0cdd9f13fd1.grobian@gentoo> Subject: [gentoo-commits] proj/portage-utils:master commit in: tests/qmanifest/ X-VCS-Repository: proj/portage-utils X-VCS-Files: tests/qmanifest/dotest tests/qmanifest/manifest01.good X-VCS-Directories: tests/qmanifest/ X-VCS-Committer: grobian X-VCS-Committer-Name: Fabian Groffen X-VCS-Revision: bcbcec8baad9790b8df4da526ad2d0cdd9f13fd1 X-VCS-Branch: master Date: Thu, 13 Jun 2019 11:26:17 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 93904269-d3a4-4508-b668-ddc53a842e31 X-Archives-Hash: e4bca96704f904219bcef3a11ae72dd6 commit: bcbcec8baad9790b8df4da526ad2d0cdd9f13fd1 Author: Fabian Groffen gentoo org> AuthorDate: Thu Jun 13 11:24:22 2019 +0000 Commit: Fabian Groffen gentoo org> CommitDate: Thu Jun 13 11:24:22 2019 +0000 URL: https://gitweb.gentoo.org/proj/portage-utils.git/commit/?id=bcbcec8b tests/qmanifest: skip sign test if importing key fails gnupg's socket path may be too long due to T being somewhere too deep, so simply skip the signing test in that case Bug: https://bugs.gentoo.org/687982 Signed-off-by: Fabian Groffen gentoo.org> tests/qmanifest/dotest | 21 ++++++++++----------- tests/qmanifest/manifest01.good | 8 ++++---- 2 files changed, 14 insertions(+), 15 deletions(-) diff --git a/tests/qmanifest/dotest b/tests/qmanifest/dotest index 525dc8b..0770ed1 100755 --- a/tests/qmanifest/dotest +++ b/tests/qmanifest/dotest @@ -42,15 +42,11 @@ 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 -export HOME=$(mktemp -d) # for gnupg home -mkdir "${HOME}"/.gnupg +export HOME=${PWD} # for gpgme/gnupg home +mkdir -p "${HOME}"/.gnupg # silence gpg warnings chmod -R og-rwx "${HOME}"/.gnupg @@ -68,8 +64,12 @@ gpg_import() { echo "${pass}" | gpg "${args[@]}" } -# import key -gpg_import "${as}"/key.gpg qmanifest +# import key, if this fails, skip the test, couple of reasons why this +# could fail: +# - Ubuntu uses old/ancient gnupg which doesn't grok arguments and key (Travis) +# - HOME (T) may be too long to hold a socket, especially on Linux this +# pathlength is very short, Portage's T may be too long by default +if gpg_import "${as}"/key.gpg qmanifest ; then # make it a fully valid tree rm testtree/my-cat/mypackage/unrecorded-file @@ -85,11 +85,10 @@ test 06 0 "echo ${KEYPASS} | qmanifest -g -s ${SIGNAS} -p testtree" rm -f gpgme.log test 07 0 "qmanifest testtree | sed -e '/Manifest timestamp/d' -e 's/made .* UTC by/made by/'" +fi # gpgimport + # shut down agents and whatnot gpgconf --kill all -rm -Rf "${HOME}" - -fi # TRAVIS_OS_NAME==Linux cleantmpdir diff --git a/tests/qmanifest/manifest01.good b/tests/qmanifest/manifest01.good index a9a087a..f97cced 100644 --- a/tests/qmanifest/manifest01.good +++ b/tests/qmanifest/manifest01.good @@ -8,12 +8,12 @@ my-cat/mypackage/Manifest::mypackage-1.ebuild: expected: 237 my-cat/mypackage/Manifest::mypackage-2.ebuild: - BLAKE2B hash mismatch - computed: '2bcad0952735a0a5bf631fe1c65b...ea81babd2a90f3076daa1e6e62ecf042a0b' - Manifest: '2410d545e7441e6402c32ca3ce7e...9fb575bd6f74e7cd92e125181af722500a3' + computed: '2bcad0952735a0a5bf631fe1c65bc6eb96eb5511f52850e55a8ad9b80480a37ea4a4b01fc6f4f7ccd94942536be3cea81babd2a90f3076daa1e6e62ecf042a0b' + Manifest: '2410d545e7441e6402c32ca3ce7e80d6eda82306db1c7d9732ed35d273a20f0983a4a40b02492fbad4145cc776f249fb575bd6f74e7cd92e125181af722500a3' my-cat/mypackage/Manifest::mypackage-2.ebuild: - SHA512 hash mismatch - computed: 'baf9a3bf09b590997d77db13d171...548c3403ac9b2dc22cb78a3112305a68889' - Manifest: 'b22f73bd10773a7b01456a237b52...62307fba13d8b04988c5aeb417f2e286d61' + computed: 'baf9a3bf09b590997d77db13d171e9b104e8acd3687b5be9a8734f0d4680bc4c34f5d0612ba11c6f5d2d34e9b659f548c3403ac9b2dc22cb78a3112305a68889' + Manifest: 'b22f73bd10773a7b01456a237b5224226c4178cc0755d0e84c8b8597071683b148f3b9f56d8b5c7fb8e58f7e618fd62307fba13d8b04988c5aeb417f2e286d61' my-cat/mypackage/Manifest::mypackage-3.ebuild: - DATA file listed in Manifest, but not found my-cat/mypackage/Manifest: