Gentoo Logo
Gentoo Spaceship




Note: Due to technical difficulties, the Archives are currently not up to date. GMANE provides an alternative service for most mailing lists.
c.f. bug 424647
List Archive: gentoo-perl
Navigation:
Lists: gentoo-perl: < Prev By Thread Next > < Prev By Date Next >
Headers:
To: "Gentoo-perl" <gentoo-perl@g.o>
From: "Beau E. Cox" <beaucox@...>
Subject: make test return code in ebuild
Date: Tue, 10 Jan 2006 18:40:43 -1000
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


Navigation:
Lists: gentoo-perl: < Prev By Thread Next > < Prev By Date Next >
Previous by thread:
[PATCH] cosmetic change to PodPerl
Next by thread:
Specific example of make test failure returning $? of 0
Previous by date:
[PATCH] cosmetic change to PodPerl
Next by date:
Specific example of make test failure returning $? of 0


Updated Jun 17, 2009

Summary: Archive of the gentoo-perl mailing list.

Donate to support our development efforts.

Copyright 2001-2013 Gentoo Foundation, Inc. Questions, Comments? Contact us.