diff options
author | Michał Górny <mgorny@gentoo.org> | 2013-01-18 23:55:44 +0000 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2013-01-18 23:55:44 +0000 |
commit | d77a4881e2db2bc94ce198a6c5d3b03138d7b83c (patch) | |
tree | ead90c7d3c083f511dcf98b20b3a290ca16b06f7 /dev-python/3to2 | |
parent | Enable running tests. (diff) | |
download | gentoo-2-d77a4881e2db2bc94ce198a6c5d3b03138d7b83c.tar.gz gentoo-2-d77a4881e2db2bc94ce198a6c5d3b03138d7b83c.tar.bz2 gentoo-2-d77a4881e2db2bc94ce198a6c5d3b03138d7b83c.zip |
Use unittest test runner to have proper exit status.
(Portage version: 2.2.0_alpha154/cvs/Linux x86_64, signed Manifest commit with key 42B9401D)
Diffstat (limited to 'dev-python/3to2')
-rw-r--r-- | dev-python/3to2/3to2-1.0.ebuild | 7 | ||||
-rw-r--r-- | dev-python/3to2/ChangeLog | 5 |
2 files changed, 8 insertions, 4 deletions
diff --git a/dev-python/3to2/3to2-1.0.ebuild b/dev-python/3to2/3to2-1.0.ebuild index 81ad5ed73254..9c7f8714795a 100644 --- a/dev-python/3to2/3to2-1.0.ebuild +++ b/dev-python/3to2/3to2-1.0.ebuild @@ -1,6 +1,6 @@ # Copyright 1999-2013 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/dev-python/3to2/3to2-1.0.ebuild,v 1.4 2013/01/18 23:42:02 mgorny Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-python/3to2/3to2-1.0.ebuild,v 1.5 2013/01/18 23:55:44 mgorny Exp $ EAPI=5 @@ -17,6 +17,7 @@ KEYWORDS="~amd64" IUSE="" python_test() { - "${PYTHON}" "${BUILD_DIR}"/lib/lib3to2/tests/test_all_fixers.py \ - || die "Tests fail with ${EPYTHON}" + cd "${BUILD_DIR}"/lib || die + # the standard test runner fails to properly return failure + "${PYTHON}" -m unittest discover || die "Tests fail with ${EPYTHON}" } diff --git a/dev-python/3to2/ChangeLog b/dev-python/3to2/ChangeLog index 3b60430ff7cb..54fc4575b706 100644 --- a/dev-python/3to2/ChangeLog +++ b/dev-python/3to2/ChangeLog @@ -1,6 +1,9 @@ # ChangeLog for dev-python/3to2 # Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-python/3to2/ChangeLog,v 1.4 2013/01/18 23:42:02 mgorny Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-python/3to2/ChangeLog,v 1.5 2013/01/18 23:55:44 mgorny Exp $ + + 18 Jan 2013; Michał Górny <mgorny@gentoo.org> 3to2-1.0.ebuild: + Use unittest test runner to have proper exit status. 18 Jan 2013; Michał Górny <mgorny@gentoo.org> 3to2-1.0.ebuild, metadata.xml: Enable running tests. |