mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-08-24 18:58:08 -07:00
junit5.eclass: use JAVA_TEST_SRC_DIR as an array
Some ebuilds using junit5.eclass had to call testng_src_test() multiple
times, once for each member of ${JAVA_TEST_SRC_DIR[@]}.
Closes: https://bugs.gentoo.org/965113
Signed-off-by: Volkmar W. Pogatzki <gentoo@pogatzki.net>
Part-of: https://github.com/gentoo/gentoo/pull/44442
Signed-off-by: Miroslav Šulc <fordfrog@gentoo.org>
This commit is contained in:
committed by
Miroslav Šulc
parent
aaaaab3c1e
commit
b1cc32e229
@@ -387,8 +387,7 @@ _junit5_src_test_traditional() {
|
||||
if [[ -n ${JAVA_TEST_RUN_ONLY} ]]; then
|
||||
tests_to_run="${JAVA_TEST_RUN_ONLY[@]}"
|
||||
else
|
||||
pushd "${JAVA_TEST_SRC_DIR}" > /dev/null || die
|
||||
tests_to_run=$(find * -type f\
|
||||
tests_to_run=$(find ${JAVA_TEST_SRC_DIR[@]} -type f\
|
||||
\( -name "*Test.java"\
|
||||
-o -name "Test*.java"\
|
||||
-o -name "*Tests.java"\
|
||||
@@ -397,11 +396,10 @@ _junit5_src_test_traditional() {
|
||||
! -name "*BaseTest*"\
|
||||
! -name "*TestTypes*"\
|
||||
! -name "*TestUtils*"\
|
||||
! -name "*\$*")
|
||||
! -name "*\$*" -printf '%P\n')
|
||||
tests_to_run=${tests_to_run//"${classes}"\/}
|
||||
tests_to_run=${tests_to_run//.java}
|
||||
tests_to_run=${tests_to_run//\//.}
|
||||
popd > /dev/null || die
|
||||
|
||||
# exclude extra test classes, usually corner cases
|
||||
# that the code above cannot handle
|
||||
|
||||
Reference in New Issue
Block a user