On Thu, 7 Aug 2008 12:00:23 -0700
"Robin H. Johnson" <[EMAIL PROTECTED]> wrote:

> More than a year ago, I had my first occurrence of a package that
> refused to work when run as root: dev-db/mysql. This lead to the
> following block of code in the src_test block:
> 
> if [[ $UID -eq 0 ]]; then
>       die "Testing with FEATURES=-userpriv is no longer supported
> by upstream. Tests MUST be run as non-root." fi  

I've used that for flac:
    if [ $UID != 0 ] ; then
        emake check || die "tests failed"
    else
        ewarn "Tests will fail if ran as root, skipping."
    fi


ie, don't die and continue. If someone is interested in the tests
they can read the ewarn.


Alexis.

Attachment: signature.asc
Description: PGP signature

Reply via email to