summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIan Delaney <idella4@gentoo.org>2012-11-02 10:12:34 +0000
committerIan Delaney <idella4@gentoo.org>2012-11-02 10:12:34 +0000
commitabde68fa1714dd29a4074146ad089850cb12069a (patch)
tree107e6ead996d4cb56e1b676e46b437350f4c65ed /dev-python/pyudev/pyudev-0.16.1.ebuild
parentapp-office/texmaker: Version Bump (diff)
downloadgentoo-2-abde68fa1714dd29a4074146ad089850cb12069a.tar.gz
gentoo-2-abde68fa1714dd29a4074146ad089850cb12069a.tar.bz2
gentoo-2-abde68fa1714dd29a4074146ad089850cb12069a.zip
test phase returned in working order; fixes bug #423483
(Portage version: 2.1.11.30/cvs/Linux x86_64, unsigned Manifest commit)
Diffstat (limited to 'dev-python/pyudev/pyudev-0.16.1.ebuild')
-rw-r--r--dev-python/pyudev/pyudev-0.16.1.ebuild13
1 files changed, 8 insertions, 5 deletions
diff --git a/dev-python/pyudev/pyudev-0.16.1.ebuild b/dev-python/pyudev/pyudev-0.16.1.ebuild
index ffe264c99580..d10d32dc7d64 100644
--- a/dev-python/pyudev/pyudev-0.16.1.ebuild
+++ b/dev-python/pyudev/pyudev-0.16.1.ebuild
@@ -1,12 +1,12 @@
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-python/pyudev/pyudev-0.16.1.ebuild,v 1.1 2012/08/27 08:44:17 patrick Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-python/pyudev/pyudev-0.16.1.ebuild,v 1.2 2012/11/02 10:12:34 idella4 Exp $
EAPI="4"
PYTHON_DEPEND="*:2.6"
SUPPORT_PYTHON_ABIS="1"
-RESTRICT_PYTHON_ABIS="2.[45] *-jython"
-#DISTUTILS_SRC_TEST="py.test" # FIXME: some tests are known to fail
+RESTRICT_PYTHON_ABIS="2.[5] *-jython"
+DISTUTILS_SRC_TEST="py.test"
inherit distutils
@@ -24,14 +24,15 @@ RDEPEND=">=sys-fs/udev-151
pyqt4? ( dev-python/PyQt4 )
pyside? ( dev-python/pyside )"
DEPEND="${RDEPEND}
- dev-python/setuptools"
- # test? ( dev-python/mock )"
+ dev-python/setuptools
+ test? ( dev-python/mock )"
DOCS="CHANGES.rst README.rst"
src_prepare() {
distutils_src_prepare
+ # tests are known to pass then fail on alternate runs
# tests: fix run_path
sed -i -e "s|== \('/run/udev'\)|in (\1,'/dev/.udev')|g" tests/test_core.py
@@ -53,4 +54,6 @@ src_prepare() {
if ! use pyqt4 && ! use pyside && ! use pygobject; then
rm -f tests/test_observer.py
fi
+
+ ewarn "if your PORTAGE_TMPDIR is longer in length then "/var/tmp/", change it to /var/tmp to ensure tests will pass"
}