Gentoo Archives: gentoo-commits

From: Conrad Kostecki <conikost@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-arch/upx/
Date: Tue, 01 Nov 2022 18:49:07
Message-Id: 1667328492.f14c66d1ae4971049e399e4396eba1992f434b5c.conikost@gentoo
1 commit: f14c66d1ae4971049e399e4396eba1992f434b5c
2 Author: Azamat H. Hackimov <azamat.hackimov <AT> gmail <DOT> com>
3 AuthorDate: Tue Nov 1 12:31:38 2022 +0000
4 Commit: Conrad Kostecki <conikost <AT> gentoo <DOT> org>
5 CommitDate: Tue Nov 1 18:48:12 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f14c66d1
7
8 app-arch/upx: fix running tests (#878977)
9
10 Tests should runs sequentially since there no dependencies for each test
11 step.
12
13 Closes: https://bugs.gentoo.org/878977
14 Signed-off-by: Azamat H. Hackimov <azamat.hackimov <AT> gmail.com>
15 Closes: https://github.com/gentoo/gentoo/pull/28076
16 Signed-off-by: Conrad Kostecki <conikost <AT> gentoo.org>
17
18 app-arch/upx/upx-4.0.0.ebuild | 9 +++++++++
19 1 file changed, 9 insertions(+)
20
21 diff --git a/app-arch/upx/upx-4.0.0.ebuild b/app-arch/upx/upx-4.0.0.ebuild
22 index dcfcfaccee67..45118519051f 100644
23 --- a/app-arch/upx/upx-4.0.0.ebuild
24 +++ b/app-arch/upx/upx-4.0.0.ebuild
25 @@ -13,6 +13,15 @@ S="${WORKDIR}/${P}-src"
26 LICENSE="GPL-2+ UPX-exception" # Read the exception before applying any patches
27 SLOT="0"
28 KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~sparc ~x86"
29 +IUSE="test"
30 +
31 +RESTRICT="!test? ( test )"
32
33 RDEPEND="!app-arch/upx-bin"
34 BDEPEND="app-arch/xz-utils[extra-filters]"
35 +
36 +src_test() {
37 + # Don't run tests in parallel, #878977
38 + cd "${BUILD_DIR}" || die
39 + ctest || die
40 +}