Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 78773 - if src_test is defined, no useful status message is displayed
Summary: if src_test is defined, no useful status message is displayed
Status: RESOLVED FIXED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Core - Ebuild Support (show other bugs)
Hardware: All All
: High enhancement (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords: InVCS
Depends on:
Blocks:
 
Reported: 2005-01-19 22:21 UTC by SpanKY
Modified: 2005-02-18 20:11 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description SpanKY gentoo-dev 2005-01-19 22:21:36 UTC
if you dont define src_test in your ebuild, or if you dont have FEATURES=test, then you get one of these useful status messages:
echo ">>> Test phase [check]: ${CATEGORY}/${PF}"
echo ">>> Test phase [test]: ${CATEGORY}/${PF}"
echo ">>> Test phase [none]: ${CATEGORY}/${PF}"
echo ">>> Test phase [explicitly disabled]: ${CATEGORY}/${PF}"
echo ">>> Test phase [not enabled]: ${CATEGORY}/${PF}"

however, if you define a src_test and the user has FEATURES=test, then you dont get a pretty message ! :(  this can be a pita when you emerge a bunch of stuff to a log file and you want to scan through it to find the test results

might i suggest the following simple patch:
Index: ebuild.sh
===================================================================
RCS file: /var/cvsroot/gentoo-src/portage/bin/ebuild.sh,v
retrieving revision 1.201.2.20
diff -u -r1.201.2.20 ebuild.sh
--- ebuild.sh   20 Jan 2005 03:16:54 -0000      1.201.2.20
+++ ebuild.sh   20 Jan 2005 06:21:18 -0000
@@ -990,6 +990,7 @@
        elif ! hasq maketest $FEATURES; then
                echo ">>> Test phase [not enabled]: ${CATEGORY}/${PF}"
        else
+               echo ">>> Test phase [ebuild defined]: ${CATEGORY}/${PF}"
                src_test
        fi
Comment 1 SpanKY gentoo-dev 2005-02-18 20:11:58 UTC
in released portage for me