Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 519740 - =dev-vcs/subversion-1.8.10 - Consider skipping expected-to-fail test suite and emit a warning, rather than aborting build.
Summary: =dev-vcs/subversion-1.8.10 - Consider skipping expected-to-fail test suite an...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Lars Wendler (Polynomial-C) (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-08-12 15:23 UTC by eroen
Modified: 2014-08-12 19:30 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description eroen 2014-08-12 15:23:14 UTC
* Messages for package dev-vcs/subversion-1.8.10:

 * The test suite shows errors when there is an older version of
 * dev-vcs/subversion installed.
 * ERROR: dev-vcs/subversion-1.8.10::gentoo failed (pretend phase):
 *   Tests will fail due to old version of this package being installed.
 * 
 * Call stack:
 *                  ebuild.sh, line  93:  Called pkg_pretend
 *   subversion-1.8.10.ebuild, line  72:  Called die
 * The specific snippet of code:
 *   		die "Tests will fail due to old version of this package being installed."
 * 
 * If you need support, post the output of `emerge --info '=dev-vcs/subversion-1.8.10::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=dev-vcs/subversion-1.8.10::gentoo'`.
 * The complete build log is located at '/var/log/portage/dev-vcs:subversion-1.8.10:20140812-143815.log'.
 * For convenience, a symlink to the build log is located at '/tmp/portage/dev-vcs/subversion-1.8.10/temp/build.log'.
 * The ebuild environment file is located at '/tmp/portage/dev-vcs/subversion-1.8.10/temp/die.env'.
 * Working directory: '/usr/lib64/portage/pym'
 * S: '/tmp/portage/dev-vcs/subversion-1.8.10/work/subversion-1.8.10'


Please consider modifying the ebuild to skip the test suite and emit a warning,
rather than aborting if the test suite is expected to fail. This is in line with
how most test suites work, skipping tests if their requirements are not filled.
Depending on the user's situation, they can then re-build the package after
making sure the requirements are filled, or ignore the skipped tests for now.

Requiring manual user intervention for updating individual packages on systems
with FEATURES=test discourages end users from running tests and contributing
test results. 

Examples friendlier handling of expected test failures in the tree:
- imagemagic (until the underlying problem was worked around): 
http://sources.gentoo.org/cgi-bin/viewvc.cgi/gentoo-x86/media-gfx/imagemagick/imagemagick-6.8.8.10.ebuild?revision=1.4
- glib skips tests depending on state of other packages (see src_prepare):
http://sources.gentoo.org/cgi-bin/viewvc.cgi/gentoo-x86/dev-libs/glib/glib-2.40.0-r1.ebuild?revision=1.8
- same with gtk+, except the whole test suite is skipped:
http://sources.gentoo.org/cgi-bin/viewvc.cgi/gentoo-x86/x11-libs/gtk+/gtk+-3.12.2.ebuild?revision=1.5
- dev-perl/GD skips tests if incompatible library versions are installed:
http://sources.gentoo.org/cgi-bin/viewvc.cgi/gentoo-x86/dev-perl/GD/GD-2.500.0.ebuild?revision=1.3
- lighttpd skips tests if incompatible FEATURES=userpriv is enabled:
http://sources.gentoo.org/cgi-bin/viewvc.cgi/gentoo-x86/www-servers/lighttpd/lighttpd-1.4.35-r1.ebuild?revision=1.1
- openssh skips some tests with FEATURES=userpriv:
http://sources.gentoo.org/cgi-bin/viewvc.cgi/gentoo-x86/net-misc/openssh/openssh-6.6.1_p1-r2.ebuild?revision=1.1
Comment 1 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2014-08-12 19:30:21 UTC
+  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).
+