From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: <gentoo-commits+bounces-1594094-garchives=archives.gentoo.org@lists.gentoo.org> Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 000FB15838C for <garchives@archives.gentoo.org>; Wed, 24 Jan 2024 15:57:23 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 35DA6E2A12; Wed, 24 Jan 2024 15:57:23 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 82CA1E2A11 for <gentoo-commits@lists.gentoo.org>; Wed, 24 Jan 2024 15:57:22 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 5EB34343380 for <gentoo-commits@lists.gentoo.org>; Wed, 24 Jan 2024 15:57:21 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 93367105D for <gentoo-commits@lists.gentoo.org>; Wed, 24 Jan 2024 15:57:19 +0000 (UTC) From: "Michael Orlitzky" <mjo@gentoo.org> To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Michael Orlitzky" <mjo@gentoo.org> Message-ID: <1706111680.c5f7cb6c9cebcb3551129940b24f2377de503702.mjo@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: eclass/ X-VCS-Repository: repo/gentoo X-VCS-Files: eclass/gap-pkg.eclass X-VCS-Directories: eclass/ X-VCS-Committer: mjo X-VCS-Committer-Name: Michael Orlitzky X-VCS-Revision: c5f7cb6c9cebcb3551129940b24f2377de503702 X-VCS-Branch: master Date: Wed, 24 Jan 2024 15:57:19 +0000 (UTC) Precedence: bulk List-Post: <mailto:gentoo-commits@lists.gentoo.org> List-Help: <mailto:gentoo-commits+help@lists.gentoo.org> List-Unsubscribe: <mailto:gentoo-commits+unsubscribe@lists.gentoo.org> List-Subscribe: <mailto:gentoo-commits+subscribe@lists.gentoo.org> List-Id: Gentoo Linux mail <gentoo-commits.gentoo.org> X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 30cd1130-864d-464b-8eac-797bafa07429 X-Archives-Hash: a910f566afa600e5a0766be7d358b15f commit: c5f7cb6c9cebcb3551129940b24f2377de503702 Author: Michael Orlitzky <mjo <AT> gentoo <DOT> org> AuthorDate: Tue Jan 23 17:50:25 2024 +0000 Commit: Michael Orlitzky <mjo <AT> gentoo <DOT> org> CommitDate: Wed Jan 24 15:54:40 2024 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c5f7cb6c gap-pkg.eclass: enable pipefail when piping tests through tee In src_test(), we are running, ${gapcmd} | tee test-suite.log to work around a terminal corruption issue in dev-gap/browse. This pipe however has the unfortunate side effect of hiding failures in ${gapcmd} behind the success of tee. To fix that, we enable pipefail for the duration of the command above. Signed-off-by: Michael Orlitzky <mjo <AT> gentoo.org> eclass/gap-pkg.eclass | 2 ++ 1 file changed, 2 insertions(+) diff --git a/eclass/gap-pkg.eclass b/eclass/gap-pkg.eclass index 89c158674b0f..e242cc92e8a3 100644 --- a/eclass/gap-pkg.eclass +++ b/eclass/gap-pkg.eclass @@ -231,8 +231,10 @@ gap-pkg_src_test() { # The "browse" package is however smart enough to figure out when # stdout is not a tty, and avoids breaking it in that case. So by # piping to tee, we encourage it not to do anything too crazy. + eshopts_push -o pipefail ${gapcmd} | tee test-suite.log \ || die "test suite failed, see test-suite.log" + eshopts_pop } # @ECLASS_VARIABLE: GAP_PKG_EXTRA_INSTALL