Gentoo Archives: gentoo-perl

From: "Beau E. Cox" <beaucox@×××××××××.com>
To: Gentoo-perl <gentoo-perl@l.g.o>
Subject: [gentoo-perl] make test return code in ebuild
Date: Wed, 11 Jan 2006 04:40:56
Message-Id: 200601101840.43420.beaucox@hawaii.rr.com
Hi -

I'm developing some ebuild scripts, and came across
a problem. I have enabled tests and when an ebuild
test fails, it is not dieing but going adhead and doing
the install.

In the src_test function, I have:

...
make test || die "test failed"
...

Tried:

make test
rc=$?
einfo "make test returns ${rc}"
[ ${rc} -eq 0 ] || die "test failed"

which displays '0' and continues.

Also tried with '/usr/bin/make test', same problem.

If I 'manually' (not within the portage system) run make test,
a code ($?) of 2 is returned.

Is there some portage magic going on that I don't understand?

-- 
Aloha => Beau;

-- 
gentoo-perl@g.o mailing list