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.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 B0B67158089 for ; Wed, 27 Sep 2023 06:58:04 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id E652F2BC022; Wed, 27 Sep 2023 06:58:03 +0000 (UTC) Received: from smtp.gentoo.org (mail.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 D1C7D2BC022 for ; Wed, 27 Sep 2023 06:58:03 +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 BF535335CE9 for ; Wed, 27 Sep 2023 06:58:02 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 1A902126E for ; Wed, 27 Sep 2023 06:58:01 +0000 (UTC) From: "Miroslav Šulc" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Miroslav Šulc" Message-ID: <1695797875.46a0d7d3899ca90d1fc9a81a288d915ccdc3ebf8.fordfrog@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: eclass/ X-VCS-Repository: repo/gentoo X-VCS-Files: eclass/java-pkg-simple.eclass X-VCS-Directories: eclass/ X-VCS-Committer: fordfrog X-VCS-Committer-Name: Miroslav Šulc X-VCS-Revision: 46a0d7d3899ca90d1fc9a81a288d915ccdc3ebf8 X-VCS-Branch: master Date: Wed, 27 Sep 2023 06:58:01 +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: f1713499-9406-413f-a0ef-d1e10cfc991d X-Archives-Hash: b3286d623836c88beec6612c1a1a3a63 commit: 46a0d7d3899ca90d1fc9a81a288d915ccdc3ebf8 Author: Volkmar W. Pogatzki pogatzki net> AuthorDate: Mon May 15 09:55:47 2023 +0000 Commit: Miroslav Šulc gentoo org> CommitDate: Wed Sep 27 06:57:55 2023 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=46a0d7d3 java-pkg-simple.eclass: improve test selection for multi-jar packages There was a problem with multi-jar packages cumulating tests. Test classes were repeatedly run for all subsequent test runs. With this patch we ensure that classes=target/test-classes is really empty before compilation. Signed-off-by: Volkmar W. Pogatzki pogatzki.net> Signed-off-by: Miroslav Šulc gentoo.org> eclass/java-pkg-simple.eclass | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/eclass/java-pkg-simple.eclass b/eclass/java-pkg-simple.eclass index 555d956d93d8..e50344c32acb 100644 --- a/eclass/java-pkg-simple.eclass +++ b/eclass/java-pkg-simple.eclass @@ -501,6 +501,9 @@ java-pkg-simple_src_test() { return fi + # https://bugs.gentoo.org/906311 + rm -rf ${classes} || die + # create the target directory mkdir -p ${classes} || die "Could not create target directory for testing" @@ -519,7 +522,6 @@ java-pkg-simple_src_test() { find "${JAVA_TEST_SRC_DIR[@]}" -name \*.java > ${test_sources} fi - # compile if [[ -s ${test_sources} ]]; then if [[ -n ${moduleinfo} ]] || [[ java-pkg_get-target -lt 9 ]]; then