Gentoo Archives: gentoo-commits

From: James Le Cuirot <chewi@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: eclass/
Date: Fri, 04 Dec 2015 21:23:47
Message-Id: 1449263244.afc9b285e52cc818123056bf6f1fee51a56c4a6c.chewi@gentoo
1 commit: afc9b285e52cc818123056bf6f1fee51a56c4a6c
2 Author: James Le Cuirot <chewi <AT> gentoo <DOT> org>
3 AuthorDate: Fri Dec 4 21:07:24 2015 +0000
4 Commit: James Le Cuirot <chewi <AT> gentoo <DOT> org>
5 CommitDate: Fri Dec 4 21:07:24 2015 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=afc9b285
7
8 java-utils-2.eclass: Don't leave junk in /tmp after ejunit calls
9
10 Put the junk in ${T} instead.
11
12 eclass/java-utils-2.eclass | 4 ++--
13 1 file changed, 2 insertions(+), 2 deletions(-)
14
15 diff --git a/eclass/java-utils-2.eclass b/eclass/java-utils-2.eclass
16 index f7a6a86..1a7dd7d 100644
17 --- a/eclass/java-utils-2.eclass
18 +++ b/eclass/java-utils-2.eclass
19 @@ -1802,8 +1802,8 @@ ejunit_() {
20 if [[ "${junit}" == "junit-4" ]] ; then
21 runner=org.junit.runner.JUnitCore
22 fi
23 - debug-print "Calling: java -cp \"${cp}\" -Djava.awt.headless=true ${runner} ${@}"
24 - java -cp "${cp}" -Djava.awt.headless=true ${runner} "${@}" || die "Running junit failed"
25 + debug-print "Calling: java -cp \"${cp}\" -Djava.io.tmpdir=\"${T}\" -Djava.awt.headless=true ${runner} ${@}"
26 + java -cp "${cp}" -Djava.io.tmpdir="${T}/" -Djava.awt.headless=true ${runner} "${@}" || die "Running junit failed"
27 }
28
29 # @FUNCTION: ejunit