1 |
commit: 275184f532d830217acc89734247f7196ee91815 |
2 |
Author: David Seifert <soap <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Apr 29 10:53:04 2017 +0000 |
4 |
Commit: David Seifert <soap <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Apr 29 16:26:37 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=275184f5 |
7 |
|
8 |
dev-python/webpy: [QA] Fix python_test() to die on failure |
9 |
|
10 |
Package-Manager: Portage-2.3.5, Repoman-2.3.2 |
11 |
|
12 |
dev-python/webpy/webpy-0.38.ebuild | 11 +++++------ |
13 |
1 file changed, 5 insertions(+), 6 deletions(-) |
14 |
|
15 |
diff --git a/dev-python/webpy/webpy-0.38.ebuild b/dev-python/webpy/webpy-0.38.ebuild |
16 |
index 48dce6b4ac4..f289a598c08 100644 |
17 |
--- a/dev-python/webpy/webpy-0.38.ebuild |
18 |
+++ b/dev-python/webpy/webpy-0.38.ebuild |
19 |
@@ -17,13 +17,12 @@ LICENSE="public-domain" |
20 |
SLOT="0" |
21 |
KEYWORDS="~amd64 ~hppa ~x86 ~amd64-linux ~x86-linux" |
22 |
|
23 |
-S="${WORKDIR}/web.py-${PV}" |
24 |
+S="${WORKDIR}/${MY_PN}-${PV}" |
25 |
|
26 |
python_test() { |
27 |
- local return_status="0" test tests="db http net template utils" |
28 |
- for test in ${tests}; do |
29 |
- echo "Running doctests in ${test}.py..." |
30 |
- "${PYTHON}" web/${test}.py || return_status="$?" |
31 |
+ local t |
32 |
+ for t in db http net template utils; do |
33 |
+ einfo "Running doctests in ${t}.py..." |
34 |
+ "${EPYTHON}" web/${t}.py || die "Test ${t} failed with ${EPYTHON}" |
35 |
done |
36 |
- return "${return_status}" |
37 |
} |