moving the portage-specific sandbox-code out of the ebuild-specific src_test
authorSimon Stelling <blubb@gentoo.org>
Sun, 3 Sep 2006 12:42:44 +0000 (12:42 -0000)
committerSimon Stelling <blubb@gentoo.org>
Sun, 3 Sep 2006 12:42:44 +0000 (12:42 -0000)
svn path=/main/trunk/; revision=4382

bin/ebuild.sh

index fdd7da0e0ab683b202f64e0a31a653a289ba9e97..6dda415bdbc06bc039fe1e5f3ace7aed2dafd8f5 100755 (executable)
@@ -609,7 +609,6 @@ src_compile() {
 }
 
 src_test() {
-       addpredict /
        if emake -j1 check -n &> /dev/null; then
                vecho ">>> Test phase [check]: ${CATEGORY}/${PF}"
                if ! emake -j1 check; then
@@ -625,7 +624,6 @@ src_test() {
        else
                vecho ">>> Test phase [none]: ${CATEGORY}/${PF}"
        fi
-       SANDBOX_PREDICT="${SANDBOX_PREDICT%:/}"
 }
 
 src_install() {
@@ -983,7 +981,9 @@ dyn_test() {
                ewarn "Skipping make test/check due to ebuild restriction."
                vecho ">>> Test phase [explicitly disabled]: ${CATEGORY}/${PF}"
        else
+               addpredict /
                src_test
+               SANDBOX_PREDICT="${SANDBOX_PREDICT%:/}"
        fi
 
        cd "${PORTAGE_BUILDDIR}"