Gentoo Archives: gentoo-user

From: "Beau E. Cox" <beaucox@×××××××××.com>
To: Gentoo <gentoo-user@l.g.o>
Subject: [gentoo-user] make test return code ignored
Date: Wed, 11 Jan 2006 05:19:15
Message-Id: 200601101915.31062.beaucox@hawaii.rr.com
1 Hi -
2
3 (I posted this on gentoo-perl in error - am reposting
4 here - sorry)
5
6 I'm developing some ebuild scripts, and came across
7 a problem. I have enabled tests and when an ebuild
8 test fails, it is not dieing but going adhead and doing
9 the install.
10
11 In the src_test function, I have:
12
13 ...
14 make test || die "test failed"
15 ...
16
17 Tried:
18
19 make test
20 rc=$?
21 einfo "make test returns ${rc}"
22 [ ${rc} -eq 0 ] || die "test failed"
23
24 which displays '0' and continues.
25
26 Also tried with '/usr/bin/make test', same problem.
27
28 If I 'manually' (not within the portage system) run make test,
29 a code ($?) of 2 is returned.
30
31 Is there some portage magic going on that I don't understand?
32
33 --
34 Aloha => Beau;
35
36 --
37 gentoo-user@g.o mailing list