diff options
author | Arfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org> | 2010-04-18 17:40:18 +0000 |
---|---|---|
committer | Arfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org> | 2010-04-18 17:40:18 +0000 |
commit | e5e0a33c5e752d8d1d9d456b475b55291d9500eb (patch) | |
tree | aa74d267d50fccfb97af1ac4dfd6443c0489c821 /dev-python/logilab-common | |
parent | ppc stable #313143 (diff) | |
download | gentoo-2-e5e0a33c5e752d8d1d9d456b475b55291d9500eb.tar.gz gentoo-2-e5e0a33c5e752d8d1d9d456b475b55291d9500eb.tar.bz2 gentoo-2-e5e0a33c5e752d8d1d9d456b475b55291d9500eb.zip |
Conditionally disable tests failing with root permissions.
(Portage version: HEAD/cvs/Linux x86_64)
Diffstat (limited to 'dev-python/logilab-common')
-rw-r--r-- | dev-python/logilab-common/logilab-common-0.49.0.ebuild | 17 |
1 files changed, 14 insertions, 3 deletions
diff --git a/dev-python/logilab-common/logilab-common-0.49.0.ebuild b/dev-python/logilab-common/logilab-common-0.49.0.ebuild index d8c1222b792e..0a58a28296f8 100644 --- a/dev-python/logilab-common/logilab-common-0.49.0.ebuild +++ b/dev-python/logilab-common/logilab-common-0.49.0.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/dev-python/logilab-common/logilab-common-0.49.0.ebuild,v 1.3 2010/04/17 17:17:21 arfrever Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-python/logilab-common/logilab-common-0.49.0.ebuild,v 1.4 2010/04/18 17:40:18 arfrever Exp $ EAPI="3" PYTHON_DEPEND="2" @@ -35,8 +35,19 @@ src_prepare() { sed -e "s/test_knownValues_is_standard_module_4/_&/" -i test/unittest_modutils.py # Disable tests failing when stdout is not a tty. - sed -e "s/test_both_capture/_&/" -i test/unittest_testlib.py - sed -e "s/test_capture_core/_&/" -i test/unittest_testlib.py + sed \ + -e "s/test_both_capture/_&/" \ + -e "s/test_capture_core/_&/" \ + -i test/unittest_testlib.py + + if [[ "${EUID}" -eq 0 ]]; then + # Disable tests failing with root permissions. + sed \ + -e "s/test_mode_change/_&/" \ + -e "s/test_mode_change_on_append/_&/" \ + -e "s/test_restore_on_close/_&/" \ + -i test/unittest_fileutils.py + fi } src_test() { |