diff options
author | Lars Wendler <polynomial-c@gentoo.org> | 2014-08-12 19:25:17 +0000 |
---|---|---|
committer | Lars Wendler <polynomial-c@gentoo.org> | 2014-08-12 19:25:17 +0000 |
commit | 53743ef8391b7eded6f9dbb80fa959233751ef1d (patch) | |
tree | 8dfa0afc794adeef193e82b11282c2a4755ff86d /dev-vcs/subversion | |
parent | Keyword ~ppc and ~ppc64, bug #519170 (diff) | |
download | gentoo-2-53743ef8391b7eded6f9dbb80fa959233751ef1d.tar.gz gentoo-2-53743ef8391b7eded6f9dbb80fa959233751ef1d.tar.bz2 gentoo-2-53743ef8391b7eded6f9dbb80fa959233751ef1d.zip |
Only skip test suite run instead of failing (bug #519740)
(Portage version: 2.2.11-r1/cvs/Linux x86_64, signed Manifest commit with key 0x981CA6FC)
Diffstat (limited to 'dev-vcs/subversion')
-rw-r--r-- | dev-vcs/subversion/ChangeLog | 6 | ||||
-rw-r--r-- | dev-vcs/subversion/subversion-1.8.10.ebuild | 49 |
2 files changed, 29 insertions, 26 deletions
diff --git a/dev-vcs/subversion/ChangeLog b/dev-vcs/subversion/ChangeLog index 0bf8717bae41..1c649e5c3d2d 100644 --- a/dev-vcs/subversion/ChangeLog +++ b/dev-vcs/subversion/ChangeLog @@ -1,6 +1,10 @@ # ChangeLog for dev-vcs/subversion # Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-vcs/subversion/ChangeLog,v 1.184 2014/08/12 11:05:37 polynomial-c Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-vcs/subversion/ChangeLog,v 1.185 2014/08/12 19:25:17 polynomial-c Exp $ + + 12 Aug 2014; Lars Wendler <polynomial-c@gentoo.org> subversion-1.8.10.ebuild: + Only skip test suite run instead of failing when an older version is + installed (bug #519740). *subversion-1.8.10 (12 Aug 2014) diff --git a/dev-vcs/subversion/subversion-1.8.10.ebuild b/dev-vcs/subversion/subversion-1.8.10.ebuild index d6e7d57de6a5..71530660422e 100644 --- a/dev-vcs/subversion/subversion-1.8.10.ebuild +++ b/dev-vcs/subversion/subversion-1.8.10.ebuild @@ -1,6 +1,6 @@ # Copyright 1999-2014 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/dev-vcs/subversion/subversion-1.8.10.ebuild,v 1.1 2014/08/12 11:05:37 polynomial-c Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-vcs/subversion/subversion-1.8.10.ebuild,v 1.2 2014/08/12 19:25:17 polynomial-c Exp $ EAPI=5 PYTHON_COMPAT=( python{2_6,2_7} ) @@ -65,14 +65,6 @@ REQUIRED_USE=" want_apache -pkg_pretend() { - if use test && ! has_version ~${CATEGORY}/${P} ; then - ewarn "The test suite shows errors when there is an older version of" - ewarn "${CATEGORY}/${PN} installed." - die "Tests will fail due to old version of this package being installed." - fi -} - pkg_setup() { if use berkdb ; then local apu_bdb_version="$(${EPREFIX}/usr/bin/apu-1-config --includes \ @@ -295,26 +287,33 @@ src_compile() { } src_test() { - default + if has_version ~${CATEGORY}/${P} ; then + default - if use ctypes-python ; then - python_test() { - "${PYTHON}" subversion/bindings/ctypes-python/test/run_all.py \ - || die "ctypes-python tests fail with ${EPYTHON}" - } + if use ctypes-python ; then + python_test() { + "${PYTHON}" subversion/bindings/ctypes-python/test/run_all.py \ + || die "ctypes-python tests fail with ${EPYTHON}" + } - distutils-r1_src_test - fi + distutils-r1_src_test + fi - if use python ; then - swig_py_test() { - pushd "${BUILD_DIR}" >/dev/null || die - "${PYTHON}" tests/run_all.py || die "swig-py tests fail with ${EPYTHON}" - popd >/dev/null || die - } + if use python ; then + swig_py_test() { + pushd "${BUILD_DIR}" >/dev/null || die + "${PYTHON}" tests/run_all.py || die "swig-py tests fail with ${EPYTHON}" + popd >/dev/null || die + } - BUILD_DIR=subversion/bindings/swig/python \ - python_foreach_impl swig_py_test + BUILD_DIR=subversion/bindings/swig/python \ + python_foreach_impl swig_py_test + fi + else + ewarn "The test suite shows errors when there is an older version of" + ewarn "${CATEGORY}/${PN} installed. Please install =${CATEGORY}/${P}*" + ewarn "before running the test suite." + ewarn "Test suite skipped." fi } |