Gentoo Archives: gentoo-commits

From: "Arfrever Frehtes Taifersar Arahesis (arfrever)" <arfrever@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in dev-python/ply: ply-3.3.ebuild
Date: Mon, 01 Nov 2010 20:35:27
Message-Id: 20101101203522.9CEB020051@flycatcher.gentoo.org
1 arfrever 10/11/01 20:35:22
2
3 Modified: ply-3.3.ebuild
4 Log:
5 Improve src_test().
6
7 (Portage version: 2.2.0_alpha3/cvs/Linux x86_64)
8
9 Revision Changes Path
10 1.4 dev-python/ply/ply-3.3.ebuild
11
12 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/ply/ply-3.3.ebuild?rev=1.4&view=markup
13 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/ply/ply-3.3.ebuild?rev=1.4&content-type=text/plain
14 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/ply/ply-3.3.ebuild?r1=1.3&r2=1.4
15
16 Index: ply-3.3.ebuild
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/dev-python/ply/ply-3.3.ebuild,v
19 retrieving revision 1.3
20 retrieving revision 1.4
21 diff -u -r1.3 -r1.4
22 --- ply-3.3.ebuild 16 Aug 2010 16:37:11 -0000 1.3
23 +++ ply-3.3.ebuild 1 Nov 2010 20:35:22 -0000 1.4
24 @@ -1,6 +1,6 @@
25 # Copyright 1999-2010 Gentoo Foundation
26 # Distributed under the terms of the GNU General Public License v2
27 -# $Header: /var/cvsroot/gentoo-x86/dev-python/ply/ply-3.3.ebuild,v 1.3 2010/08/16 16:37:11 djc Exp $
28 +# $Header: /var/cvsroot/gentoo-x86/dev-python/ply/ply-3.3.ebuild,v 1.4 2010/11/01 20:35:22 arfrever Exp $
29
30 EAPI="3"
31 SUPPORT_PYTHON_ABIS="1"
32 @@ -29,8 +29,17 @@
33 cd test
34
35 testing() {
36 - "$(PYTHON)" testlex.py || return 1
37 - "$(PYTHON)" testyacc.py || return 1
38 + local exit_status="0" test
39 +
40 + for test in testlex.py testyacc.py; do
41 + einfo "Running ${test}..."
42 + if ! "$(PYTHON)" testlex.py; then
43 + ewarn "${test} failed with $(python_get_implementation) $(python_get_version)"
44 + exit_status="1"
45 + fi
46 + done
47 +
48 + return "${exit_status}"
49 }
50 python_execute_function testing
51
52 @@ -44,6 +53,6 @@
53
54 if use examples; then
55 insinto /usr/share/doc/${PF}
56 - doins -r example
57 + doins -r example || die "doins failed"
58 fi
59 }