commit: f14c66d1ae4971049e399e4396eba1992f434b5c Author: Azamat H. Hackimov <azamat.hackimov <AT> gmail <DOT> com> AuthorDate: Tue Nov 1 12:31:38 2022 +0000 Commit: Conrad Kostecki <conikost <AT> gentoo <DOT> org> CommitDate: Tue Nov 1 18:48:12 2022 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f14c66d1
app-arch/upx: fix running tests (#878977) Tests should runs sequentially since there no dependencies for each test step. Closes: https://bugs.gentoo.org/878977 Signed-off-by: Azamat H. Hackimov <azamat.hackimov <AT> gmail.com> Closes: https://github.com/gentoo/gentoo/pull/28076 Signed-off-by: Conrad Kostecki <conikost <AT> gentoo.org> app-arch/upx/upx-4.0.0.ebuild | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/app-arch/upx/upx-4.0.0.ebuild b/app-arch/upx/upx-4.0.0.ebuild index dcfcfaccee67..45118519051f 100644 --- a/app-arch/upx/upx-4.0.0.ebuild +++ b/app-arch/upx/upx-4.0.0.ebuild @@ -13,6 +13,15 @@ S="${WORKDIR}/${P}-src" LICENSE="GPL-2+ UPX-exception" # Read the exception before applying any patches SLOT="0" KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~sparc ~x86" +IUSE="test" + +RESTRICT="!test? ( test )" RDEPEND="!app-arch/upx-bin" BDEPEND="app-arch/xz-utils[extra-filters]" + +src_test() { + # Don't run tests in parallel, #878977 + cd "${BUILD_DIR}" || die + ctest || die +}
