Disable the test phase when USE=test is masked (for consistency with the fix for...
authorZac Medico <zmedico@gentoo.org>
Sun, 14 Jan 2007 21:56:00 +0000 (21:56 -0000)
committerZac Medico <zmedico@gentoo.org>
Sun, 14 Jan 2007 21:56:00 +0000 (21:56 -0000)
svn path=/main/trunk/; revision=5646

bin/ebuild.sh

index 57eca618ac2b96be85242faf867f049c644cc543..0b6ac9652daacef7b6e0088634fa64aeb01cd1ea 100755 (executable)
@@ -1019,6 +1019,9 @@ dyn_test() {
        fi
        if ! hasq test $FEATURES && [ "${EBUILD_FORCE_TEST}" != "1" ]; then
                vecho ">>> Test phase [not enabled]: ${CATEGORY}/${PF}"
+       elif ! hasq test ${USE} && [ "${EBUILD_FORCE_TEST}" != "1" ]; then
+               ewarn "Skipping make test/check since USE=test is masked."
+               vecho ">>> Test phase [explicitly disabled]: ${CATEGORY}/${PF}"
        elif hasq test $RESTRICT; then
                ewarn "Skipping make test/check due to ebuild restriction."
                vecho ">>> Test phase [explicitly disabled]: ${CATEGORY}/${PF}"