Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 771719 Details for
Bug 801694
java-utils-2.eclass: JAVA_TESTING_FRAMEWORKS="testng" does not print test failures
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
java-util-2-runner-args.patch
java-util-2-runner-args.patch (text/plain), 2.54 KB, created by
Florian Schmaus
on 2022-04-19 07:28:48 UTC
(
hide
)
Description:
java-util-2-runner-args.patch
Filename:
MIME Type:
Creator:
Florian Schmaus
Created:
2022-04-19 07:28:48 UTC
Size:
2.54 KB
patch
obsolete
>diff --git a/eclass/java-utils-2.eclass b/eclass/java-utils-2.eclass >index ed4951ac97b7..4d238fd75229 100644 >--- a/eclass/java-utils-2.eclass >+++ b/eclass/java-utils-2.eclass >@@ -141,6 +141,20 @@ JAVA_PKG_ALLOW_VM_CHANGE=${JAVA_PKG_ALLOW_VM_CHANGE:="yes"} > # ) > # @CODE > >+# @ECLASS-VARIABLE: JAVA_TEST_RUNNER_EXTRA_ARGS >+# @DEFAULT_UNSET >+# @DESCRIPTION: >+# Array of extra arguments that should be passed to the test runner when running tests. >+# It is useful when you need to pass an extra argument to the test runner. >+# >+# It is used only when running tests. >+# >+# @CODE >+# JAVA_TEST_RUNNER_EXTRA_ARGS=( >+# -verbose 3 >+# ) >+# @CODE >+ > # @ECLASS-VARIABLE: JAVA_PKG_DEBUG > # @DEFAULT_UNSET > # @DESCRIPTION: >@@ -1813,8 +1827,9 @@ ejunit_() { > if [[ "${junit}" == "junit-4" ]] ; then > runner=org.junit.runner.JUnitCore > fi >- debug-print "Calling: java -cp \"${cp}\" -Djava.io.tmpdir=\"${T}\" -Djava.awt.headless=true ${JAVA_TEST_EXTRA_ARGS[@]} ${runner} ${@}" >- java -cp "${cp}" -Djava.io.tmpdir="${T}/" -Djava.awt.headless=true ${JAVA_TEST_EXTRA_ARGS[@]} ${runner} "${@}" || die "Running junit failed" >+ debug-print "Calling: java -cp \"${cp}\" -Djava.io.tmpdir=\"${T}\" -Djava.awt.headless=true ${JAVA_TEST_EXTRA_ARGS[@]} ${runner} ${JAVA_TEST_RUNNER_EXTRA_ARGS[@]} ${@}" >+ java -cp "${cp}" -Djava.io.tmpdir="${T}/" -Djava.awt.headless=true\ >+ ${JAVA_TEST_EXTRA_ARGS[@]} ${runner} "${JAVA_TEST_RUNNER_EXTRA_ARGS[@]}" "${@}" || die "Running junit failed" > } > > # @FUNCTION: ejunit >@@ -1880,6 +1895,7 @@ etestng() { > local runner=org.testng.TestNG > local cp=$(java-pkg_getjars --with-dependencies testng) > local tests >+ local args > > if [[ ${1} = -cp || ${1} = -classpath ]]; then > cp="${cp}:${2}" >@@ -1892,12 +1908,22 @@ etestng() { > tests+="${test}," > done > >- debug-print "java -cp \"${cp}\" -Djava.io.tmpdir=\"${T}\""\ >- "-Djava.awt.headless=true ${JAVA_TEST_EXTRA_ARGS[@]} ${runner}"\ >- "-usedefaultlisteners false -testclass ${tests}" >- java -cp "${cp}" -Djava.io.tmpdir=\"${T}\" -Djava.awt.headless=true ${JAVA_TEST_EXTRA_ARGS[@]}\ >- ${runner} -usedefaultlisteners false -testclass ${tests}\ >- || die "Running TestNG failed." >+ args=( >+ "-cp" >+ "${cp}" >+ "-Djava.io.tmpdir=\"${T}\"" >+ "-Djava.awt.headless=true" >+ ${JAVA_TEST_EXTRA_ARGS[@]} >+ ${runner} >+ "${JAVA_TEST_RUNNER_EXTRA_ARGS[@]}" >+ ) >+ >+ [[ ! "${JAVA_TEST_RUNNER_EXTRA_ARGS[@]}" =~ "-usedefaultlisteners" ]] && args+=( -usedefaultlisteners false ) >+ >+ args+=( -testclass ${tests} ) >+ >+ debug-print "java ${args[@]}" >+ java ${args[@]} || die "Running TestNG failed." > } > > # @FUNCTION: java-utils-2_src_prepare
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 801694
: 771719 |
786581
|
786584