On Mon, 11 May 2009 23:29:10 +1200 Alistair Bush <[email protected]> wrote:
> I would assume it would be better to directly test whether the user is
> root, than test that userpriv is set?
AFAIK:
if [[ ${EUID} -eq 0 ]]; then
rootstuff
else
nonrootstuff
fi
But for tests that fail with userpriv just because they don't have the proper
permissions you can usually just use a -r or -w test.
( eg. [[ -w ${S}/testdir/runtestsdir ]] || skiptest )
Bonus points for patching this into the test itself and getting it upstream.
--
gcc-porting, by design, by neglect
treecleaner, for a fact or just for effect
wxwidgets @ gentoo EFFD 380E 047A 4B51 D2BD C64F 8AA8 8346 F9A4 0662
signature.asc
Description: PGP signature
