Marius Mauch wrote:
On Wed, 19 Mar 2008 18:32:41 -0600
Ryan Hill <[EMAIL PROTECTED]> wrote:We seriously need a PM-independent way of saying "run the testsuite", "run the testsuite with user privledges", and "run the testsuite with root privledges if you can, otherwise forget it". Also required is the ability to make test failures non-fatal on a per-package basis, though this probably has nothing to do with the PMS.
How about just checking EUID == 0 in src_test and skip the tests (with a ewarn message) if it doesn't match your needs?
I thought I remembered someone raising a stink about checking permissions being a race condition because the condition can change between the checking and performing the action. Maybe that was only about write permissions... If checking EUID is an acceptable method, it should be relatively simple to write an eclass to handle the common cases and have ebuilds use that instead of checking $FEATURES (which i do think is a bug).
-- fonts, gcc-porting, by design, by neglect mips, treecleaner, for a fact or just for effect wxwidgets @ gentoo EFFD 380E 047A 4B51 D2BD C64F 8AA8 8346 F9A4 0662
signature.asc
Description: OpenPGP digital signature