summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeroen Roovers <jer@gentoo.org>2010-07-28 14:02:09 +0000
committerJeroen Roovers <jer@gentoo.org>2010-07-28 14:02:09 +0000
commit2d4efa52e597700eff070e29385c8f0a6c8a9b16 (patch)
treed0c9ff5899b14d02cf1b1523ef8def2b1566c7d1 /app-admin
parentbackport upstream patch from git, see https://bugzilla.redhat.com/show_bug.cg... (diff)
downloadgentoo-2-2d4efa52e597700eff070e29385c8f0a6c8a9b16.tar.gz
gentoo-2-2d4efa52e597700eff070e29385c8f0a6c8a9b16.tar.bz2
gentoo-2-2d4efa52e597700eff070e29385c8f0a6c8a9b16.zip
Use dev-python/nose to run tests thanks to arfrever.
(Portage version: 2.2_rc67/cvs/Linux i686)
Diffstat (limited to 'app-admin')
-rw-r--r--app-admin/lib_users/ChangeLog5
-rw-r--r--app-admin/lib_users/lib_users-0.1.ebuild18
2 files changed, 13 insertions, 10 deletions
diff --git a/app-admin/lib_users/ChangeLog b/app-admin/lib_users/ChangeLog
index 2c9725cd3476..3eeec0b5df34 100644
--- a/app-admin/lib_users/ChangeLog
+++ b/app-admin/lib_users/ChangeLog
@@ -1,6 +1,9 @@
# ChangeLog for app-admin/lib_users
# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/app-admin/lib_users/ChangeLog,v 1.5 2010/07/28 13:42:45 jer Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-admin/lib_users/ChangeLog,v 1.6 2010/07/28 14:02:09 jer Exp $
+
+ 28 Jul 2010; Jeroen Roovers <jer@gentoo.org> lib_users-0.1.ebuild:
+ Use dev-python/nose to run tests thanks to arfrever.
28 Jul 2010; Jeroen Roovers <jer@gentoo.org> lib_users-0.1.ebuild:
Hail to the python overlords (arfrever): use python.eclass to convert
diff --git a/app-admin/lib_users/lib_users-0.1.ebuild b/app-admin/lib_users/lib_users-0.1.ebuild
index 8d8a2bbd0d1f..4cb301b557b0 100644
--- a/app-admin/lib_users/lib_users-0.1.ebuild
+++ b/app-admin/lib_users/lib_users-0.1.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/app-admin/lib_users/lib_users-0.1.ebuild,v 1.4 2010/07/28 13:42:45 jer Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-admin/lib_users/lib_users-0.1.ebuild,v 1.5 2010/07/28 14:02:09 jer Exp $
EAPI=3
@@ -14,21 +14,21 @@ SRC_URI="http://schwarzvogel.de/pkgs/${P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~x86"
-IUSE=""
+IUSE="test"
-DEPEND=""
-RDEPEND="${DEPEND}"
+DEPEND="test? ( dev-python/nose )"
+RDEPEND=""
+
+pkg_setup() {
+ python_set_active_version 2
+}
src_prepare() {
python_convert_shebangs -r 2 .
}
src_test() {
- if python test_libusers.py; then
- einfo "test_libusers.py succeeded"
- else
- ewarn "test_libusers.py failed"
- fi
+ python_execute_nosetests -P .
}
src_install() {