Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 231280 - dev-util/mercurial-1.0.1-r3 test failures
Summary: dev-util/mercurial-1.0.1-r3 test failures
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal
Assignee: Krzysztof Pawlik (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-07-09 10:40 UTC by Alexis Ballier
Modified: 2008-10-04 17:49 UTC (History)
1 user (show)

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


Attachments
mercurial-1.0.1-r3.ebuild.diff (mercurial-1.0.1-r3.ebuild.diff,1.26 KB, patch)
2008-07-10 10:48 UTC, Krzysztof Pawlik (RETIRED)
Details | Diff
mercurial-1.0.1-r3.ebuild.patch (mercurial-1.0.1-r3.ebuild.patch,1.13 KB, patch)
2008-08-18 02:19 UTC, Lourdes Jones
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Alexis Ballier gentoo-dev 2008-07-09 10:40:13 UTC
[ebuild     U ] dev-util/mercurial-1.0.1-r3 [1.0.1-r2] USE="bash-completion test -bugzilla -emacs -gpg -zsh-completion (-cvs%*) (-darcs%) (-git%) (-subversion%*)" 0 kB 


>>> Source compiled.
 * Running Mercurial tests ...
...............................................................
ERROR: test-doctest.py output changed
--- Expected output 
+++ Test output 
@@ -1,0 +1,1 @@
+.........................
ERROR: test-hgweb output changed
--- Expected output 
+++ Test output 
@@ -101,6 +101,7 @@
 
 error: bork@2ef0ac749a14: not found in manifest
 % stop and restart
+abort: cannot start server at ':20059': Address already in use
 9 log lines written
 % static file
 200 Script output follows
...................................................................................s....................................................................
Skipped test-no-symlinks: system supports symbolic links
Failed test-doctest.py: output changed
Failed test-hgweb: output changed
# Ran 240 tests, 1 skipped, 2 failed.
 * 
 * ERROR: dev-util/mercurial-1.0.1-r3 failed.
 * Call stack:
 *               ebuild.sh, line   49:  Called src_test
 *             environment, line 3015:  Called die
 * The specific snippet of code:
 *       python run-tests.py || die "test failed"
 *  The die message:
 *   test failed


# emerge --info
Portage 2.2_rc1 (default-linux/amd64/2007.0, gcc-4.3.1-asneeded, glibc-2.8_p20080602-r0, 2.6.25.7 x86_64)
=================================================================
System uname: Linux-2.6.25.7-x86_64-AMD_Athlon-tm-_64_Processor_3200+-with-glibc2.2.5
Timestamp of tree: Unknown
distcc 2.18.3 x86_64-pc-linux-gnu (protocols 1 and 2) (default port 3632) [enabled]
app-shells/bash:     3.2_p39
dev-java/java-config: 1.3.7, 2.1.6-r1
dev-lang/python:     2.5.2-r5
sys-apps/baselayout: 2.0.0
sys-apps/openrc:     0.2.5
sys-apps/sandbox:    1.2.18.1-r3
sys-devel/autoconf:  2.13, 2.62-r1
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.1-r1
sys-devel/binutils:  2.18-r3
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   2.2.4
virtual/os-headers:  2.6.25-r4
ACCEPT_KEYWORDS="amd64 ~amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=athlon64 -O2 -pipe -g -ggdb"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-march=athlon64 -O2 -pipe -g -ggdb"
DISTDIR="/share/gentoo/distfiles"
FEATURES="buildpkg buildsyspkg ccache collision-protect cvs distcc distlocks fixpackages multilib-strict parallel-fetch preserve-libs sandbox sfperms sign splitdebug strict test unmerge-orphans userfetch userpriv usersandbox"
GENTOO_MIRRORS="ftp://ftp.free.fr/mirrors/ftp.gentoo.org/"
LANG="en_US.utf8"
LDFLAGS="-Wl,--as-needed -Wl,-O1 -Wl,--sort-common -Wl,--hash-style=gnu"
LINGUAS="en fr en_US"
MAKEOPTS="-j4"
PKGDIR="/usr/portage/packages"
PORTAGE_COMPRESS="lzma"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage_cvs/gentoo-x86"
PORTDIR_OVERLAY="/usr/local/portage /share/overlay /share/official-overlay/aballier/texlive-overlay"
SYNC="cvs://aballier@cvs.gentoo.org:/var/cvsroot"
USE="3dnow 3dnowext X a52 aac aalib acl acpi alsa amd64 apache2 asf audiofile authdaemond bash-completion berkdb bluetooth bogofilter browserplugin bzip2 cairo caps cddb cdio cdr cjk cli cpufreq cracklib crypt css cups curl custom-cflags cvs dba dbus dirac djvu doc dri dssi dts dv dvb dvd dvdnav dvdr dvdread dvi emerald enca encode escreen evo exif expat fam fame fat fbdev ffmpeg fftw firefox flac fltk fluidsynth fontconfig foomaticdb fortran fping freesound ftp gd gdbm gif gimp glib glitz gnokii gnutls gpac gpgme gpm graphviz gs gstreamer gtk gtkhtml hal hddtemp hfs icecast iconv id3tag ide ieee1394 imagemagick imap imlib ipv6 irmc isdnlog ithreads jack jadetex javascript jfs jpeg jpeg2k kdeenablefinal kdehiddenvisibility kerberos kpathsea ladcca ladspa lame lash latex lcms ldap libcaca libffi libgcrypt libnotify libsamplerate libssh2 live lzma lzo mad maildir matroska mbox md5sum midi mikmod mjpeg mmx mmxext mng modplug mono motif mozilla mp2 mp3 mp4 mpeg mplayer mudflap musepack musicbrainz nautilus ncurses network nfs nls nntp no-old-linux nodrm nowin nptl nptlonly nsplugin ntfs nvidia objc ocaml ocamlopt offensive ogg oggvorbis ogm openal openexr opengl openmp osc pam pango pcre pda pdf perl png pnm portaudio postgres ppds pppd pulseaudio python qt3 qt4 quicktime radio rar raw readline reflection reiser4 reiserfs rle rtc rtsp ruby sasl sdl session shorten slang sms sndfile softmmu soundtouch sox spamassassin speex spell spl sqlite3 srt sse sse2 ssl startup-notification stroke subtitles subversion svg sysfs t1lib tcl tcpd test tetex tex4ht tga theora threads tiff tk truetype twolame udev unicode urandom usb v4l v4l2 vcd vchroot vim-syntax visualization vorbis wavpack wifi wmf wxwindows x264 xcb xcomposite xfs xine xinerama xml xorg xpm xprint xulrunner xv xvid xvmc zlib zvbi" ALSA_CARDS="bt87x intel8x0" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CAMERAS="canon" DVB_CARDS="usb-umt" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en fr en_US" LIRC_DEVICES="pctv" USERLAND="GNU" VIDEO_CARDS="vesa nv v4l nvidia"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Krzysztof Pawlik (RETIRED) gentoo-dev 2008-07-10 10:48:24 UTC
Created attachment 160040 [details, diff]
mercurial-1.0.1-r3.ebuild.diff

Please apply this patch to ebuild and report the results.
Comment 2 Alexis Ballier gentoo-dev 2008-07-10 11:23:23 UTC
got this now:

 * Running Mercurial tests ...
..............
ERROR: test-bad-pull output changed
--- Expected output 
+++ Test output 
@@ -1,5 +1,5 @@
 abort: error: Connection refused
 255
 copy: No such file or directory
-abort: HTTP Error 404
+abort: error: Connection refused
 0
...............................................
ERROR: test-doctest.py output changed
--- Expected output 
+++ Test output 
@@ -1,0 +1,1 @@
+.........................
ERROR: test-hgweb output changed
--- Expected output 
+++ Test output 
@@ -101,6 +101,7 @@
 
 error: bork@2ef0ac749a14: not found in manifest
 % stop and restart
+abort: cannot start server at ':20059': Address already in use
 9 log lines written
 % static file
 200 Script output follows
........
ERROR: test-http output changed
--- Expected output 
+++ Test output 
@@ -34,11 +34,6 @@
 1 files, 1 changesets, 1 total revisions
 adding bar
 % pull
-changegroup hook: HG_NODE=cfbd11a1fa315300a080c3de8fe36b0fc5820acf HG_SOURCE=pull HG_URL=http://localhost/ 
 pulling from http://localhost/
 searching for changes
-adding changesets
-adding manifests
-adding file changes
-added 1 changesets with 1 changes to 1 files
-(run 'hg update' to get a working copy)
+no changes found
..........................................................................s..................................................................
Skipped test-no-symlinks: system supports symbolic links
Failed test-bad-pull: output changed
Failed test-doctest.py: output changed
Failed test-hgweb: output changed
Failed test-http: output changed
# Ran 235 tests, 1 skipped, 4 failed.
Comment 3 Lourdes Jones 2008-08-18 02:19:40 UTC
Created attachment 163165 [details, diff]
mercurial-1.0.1-r3.ebuild.patch

The trick to tests succeeding with userpriv was to define tmpdir. test-doctest.py will fail with python 2.5.2 (status unchanged from mercurial 1.0 announcement response) http://www.selenic.com/pipermail/mercurial/2008-March/018068.html

mercurial-1.0.1-r3.ebuild.diff posted here did not work for me.
--with-hg=${S} breaks testing since mercurial is not installed in that directory and python will then import from the system (all tests will fail if mercurial is not installed, unpredictable results depending on the version of mercurial which is installation). --jobs=1 made no difference to my results.

This patch to the ebuild conditionally removes the tests requiring FEATURES="userpriv" and unconditionally removes test-doctest.py in addition to adding --tmpdir=${testdir}.
Comment 4 Robert Buchholz (RETIRED) gentoo-dev 2008-10-04 17:49:30 UTC
Thanks for the patch.

+  04 Oct 2008; Robert Buchholz <rbu@gentoo.org> mercurial-1.0.2.ebuild:
+  Make tests run with Python 2.5 and FEATURES=userpriv, a patch by Lourdes
+  Jones (bug #231280).