public inbox for gentoo-perl@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-perl] make test return code in ebuild
@ 2006-01-11  4:40 Beau E. Cox
  0 siblings, 0 replies; only message in thread
From: Beau E. Cox @ 2006-01-11  4:40 UTC (permalink / raw
  To: Gentoo-perl

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@gentoo.org mailing list



^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2006-01-11  4:40 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-01-11  4:40 [gentoo-perl] make test return code in ebuild Beau E. Cox

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox