java-utils-2.eclass: Don't leave junk in /tmp after ejunit calls

Put the junk in ${T} instead.
This commit is contained in:
James Le Cuirot
2015-12-04 21:07:24 +00:00
parent 6fc2260b85
commit afc9b285e5
+2 -2
View File
@@ -1802,8 +1802,8 @@ ejunit_() {
if [[ "${junit}" == "junit-4" ]] ; then
runner=org.junit.runner.JUnitCore
fi
debug-print "Calling: java -cp \"${cp}\" -Djava.awt.headless=true ${runner} ${@}"
java -cp "${cp}" -Djava.awt.headless=true ${runner} "${@}" || die "Running junit failed"
debug-print "Calling: java -cp \"${cp}\" -Djava.io.tmpdir=\"${T}\" -Djava.awt.headless=true ${runner} ${@}"
java -cp "${cp}" -Djava.io.tmpdir="${T}/" -Djava.awt.headless=true ${runner} "${@}" || die "Running junit failed"
}
# @FUNCTION: ejunit