Don't warn about RESTRICT=test unless FEATURES=test is enabled for bug #134004.
authorZac Medico <zmedico@gentoo.org>
Mon, 22 May 2006 07:47:08 +0000 (07:47 -0000)
committerZac Medico <zmedico@gentoo.org>
Mon, 22 May 2006 07:47:08 +0000 (07:47 -0000)
svn path=/main/trunk/; revision=3389

bin/ebuild.sh

index 5f7cd431680ecab27f5da47debefaaab3c517a86..31f32ed8ae93f1d9c5756dac0f47f27772ad90b9 100755 (executable)
@@ -970,11 +970,11 @@ dyn_test() {
        if [ -d "${S}" ]; then
                cd "${S}"
        fi
-       if hasq test $RESTRICT; then
+       if ! hasq test $FEATURES; then
+               vecho ">>> Test phase [not enabled]: ${CATEGORY}/${PF}"
+       elif hasq test $RESTRICT; then
                ewarn "Skipping make test/check due to ebuild restriction."
                vecho ">>> Test phase [explicitly disabled]: ${CATEGORY}/${PF}"
-       elif ! hasq test $FEATURES; then
-               vecho ">>> Test phase [not enabled]: ${CATEGORY}/${PF}"
        else
                src_test
        fi