From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from lists.gentoo.org ([140.105.134.102] helo=robin.gentoo.org) by nuthatch.gentoo.org with esmtp (Exim 4.54) id 1EwXn6-0004Gf-8X for garchives@archives.gentoo.org; Wed, 11 Jan 2006 04:40:56 +0000 Received: from robin.gentoo.org (localhost [127.0.0.1]) by robin.gentoo.org (8.13.5/8.13.5) with SMTP id k0B4elN8018755; Wed, 11 Jan 2006 04:40:47 GMT Received: from ms-smtp-03-eri0.socal.rr.com (ms-smtp-03-qfe0.socal.rr.com [66.75.162.135]) by robin.gentoo.org (8.13.5/8.13.5) with ESMTP id k0B4ekxe030775 for ; Wed, 11 Jan 2006 04:40:46 GMT Received: from cpe-70-95-13-106.hawaii.res.rr.com (cpe-70-95-13-106.hawaii.res.rr.com [70.95.13.106]) by ms-smtp-03-eri0.socal.rr.com (8.12.10/8.12.7) with ESMTP id k0B4ehV7026699 for ; Tue, 10 Jan 2006 20:40:44 -0800 (PST) From: "Beau E. Cox" To: "Gentoo-perl" Subject: [gentoo-perl] make test return code in ebuild Date: Tue, 10 Jan 2006 18:40:43 -1000 User-Agent: KMail/1.8.3 Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-perl@gentoo.org Reply-To: gentoo-perl@gentoo.org MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200601101840.43420.beaucox@hawaii.rr.com> X-Virus-Scanned: Symantec AntiVirus Scan Engine X-Archives-Salt: 92f943fd-2943-482c-9531-f9fab279089c X-Archives-Hash: 1d8f64af2fd2dfdf3bf27a22175f54e0 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