summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2007-05-10 05:35:04 +0000
committerZac Medico <zmedico@gentoo.org>2007-05-10 05:35:04 +0000
commit909e2f009419e7a3aff3007e682846030840fb9b (patch)
treecb0f0c2426a820a613a270fb39db1e5ea319cffb /bin
parent465c0fe68b19f84547b328669e9fd42039f0057e (diff)
downloadportage-909e2f009419e7a3aff3007e682846030840fb9b.tar.gz
portage-909e2f009419e7a3aff3007e682846030840fb9b.tar.bz2
portage-909e2f009419e7a3aff3007e682846030840fb9b.zip
Make sure USE=test is properly enabled when the test phase is forced via the ebuild command, even when USE from ${T}/environment doen't have it. (trunk r6512:6513)
svn path=/main/branches/2.1.2/; revision=6514
Diffstat (limited to 'bin')
-rwxr-xr-xbin/ebuild.sh7
1 files changed, 6 insertions, 1 deletions
diff --git a/bin/ebuild.sh b/bin/ebuild.sh
index bacb21b28..1f4877761 100755
--- a/bin/ebuild.sh
+++ b/bin/ebuild.sh
@@ -1003,7 +1003,12 @@ dyn_compile() {
}
dyn_test() {
- [ "${EBUILD_FORCE_TEST}" == "1" ] && rm -f "${PORTAGE_BUILDDIR}/.tested"
+ if [ "${EBUILD_FORCE_TEST}" == "1" ] ; then
+ rm -f "${PORTAGE_BUILDDIR}/.tested"
+ # If USE came from ${T}/environment then it might not have USE=test
+ # like it's supposed to here.
+ ! hasq test ${USE} && export USE="${USE} test"
+ fi
[ "$(type -t pre_src_test)" == "function" ] && qa_call pre_src_test
if [ "${PORTAGE_BUILDDIR}/.tested" -nt "${WORKDIR}" ]; then
vecho ">>> It appears that ${PN} has already been tested; skipping."