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
1 Hi -
2
3 I'm developing some ebuild scripts, and came across
4 a problem. I have enabled tests and when an ebuild
5 test fails, it is not dieing but going adhead and doing
6 the install.
7
8 In the src_test function, I have:
9
10 ...
11 make test || die "test failed"
12 ...
13
14 Tried:
15
16 make test
17 rc=$?
18 einfo "make test returns ${rc}"
19 [ ${rc} -eq 0 ] || die "test failed"
20
21 which displays '0' and continues.
22
23 Also tried with '/usr/bin/make test', same problem.
24
25 If I 'manually' (not within the portage system) run make test,
26 a code ($?) of 2 is returned.
27
28 Is there some portage magic going on that I don't understand?
29
30 --
31 Aloha => Beau;
32
33 --
34 gentoo-perl@g.o mailing list