_eapi0_src_test: remove redundant FEATURES checks
authorZac Medico <zmedico@gentoo.org>
Tue, 17 Jan 2012 15:30:11 +0000 (07:30 -0800)
committerZac Medico <zmedico@gentoo.org>
Tue, 17 Jan 2012 15:30:11 +0000 (07:30 -0800)
bin/phase-helpers.sh

index 969cecfe0468829ef81aa3161f9e3b0797d33317..d65845e4764772acca00035c809446fa33a4444a 100644 (file)
@@ -546,15 +546,12 @@ _eapi0_src_test() {
        local emake_cmd="${MAKE:-make} ${MAKEOPTS} ${EXTRA_EMAKE}"
        if $emake_cmd -j1 check -n &> /dev/null; then
                vecho ">>> Test phase [check]: ${CATEGORY}/${PF}"
-               if ! $emake_cmd -j1 check; then
-                       has test $FEATURES && die "Make check failed. See above for details."
-                       has test $FEATURES || eerror "Make check failed. See above for details."
-               fi
+               $emake_cmd -j1 check || \
+                       die "Make check failed. See above for details."
        elif $emake_cmd -j1 test -n &> /dev/null; then
                vecho ">>> Test phase [test]: ${CATEGORY}/${PF}"
-               if ! $emake_cmd -j1 test; then
-                       has test $FEATURES && die "Make test failed. See above for details."
-                       has test $FEATURES || eerror "Make test failed. See above for details."
+               $emake_cmd -j1 test || \
+                       die "Make test failed. See above for details."
                fi
        else
                vecho ">>> Test phase [none]: ${CATEGORY}/${PF}"