Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 173301 - dev-util/bzr-0.15 fails test suite
Summary: dev-util/bzr-0.15 fails test suite
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: Marien Zwart (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-04-04 06:09 UTC by Bo Ørsted Andresen (RETIRED)
Modified: 2007-09-26 14:57 UTC (History)
1 user (show)

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


Attachments
build log (dev-util:bzr-0.15:20070404-051121.log,725.00 KB, text/plain)
2007-04-04 06:10 UTC, Bo Ørsted Andresen (RETIRED)
Details
bzr-0.90-tests-fix_root.patch (bzr-0.90-tests-fix_root.patch,1.15 KB, patch)
2007-09-06 08:59 UTC, Ali Polatel (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Bo Ørsted Andresen (RETIRED) gentoo-dev 2007-04-04 06:09:45 UTC
FAIL: test_lockdir.TestLockDir.test_lock_permission
    PermissionDenied not raised

FAIL: per_lock.test_lock.TestLock.test_readonly_file(fcntl)
    IOError not raised


======================================================================
FAIL: test_lock_permission (bzrlib.tests.test_lockdir.TestLockDir)

vvvv[log from bzrlib.tests.test_lockdir.TestLockDir.test_lock_permission]-----

^^^^[log from bzrlib.tests.test_lockdir.TestLockDir.test_lock_permission]-----
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/var/tmp/portage/dev-util/bzr-0.15/work/bzr-0.15/bzrlib/tests/test_lockdir.py", line 614, in test_lock_permission
    self.assertRaises(errors.PermissionDenied, ld1.attempt_lock)
  File "/var/tmp/portage/dev-util/bzr-0.15/work/bzr-0.15/bzrlib/tests/__init__.py", line 814, in assertRaises
    raise self.failureException, "%s not raised" % excName
AssertionError: PermissionDenied not raised

======================================================================
FAIL: test_readonly_file (bzrlib.tests.per_lock.test_lock.TestLock)

vvvv[log from bzrlib.tests.per_lock.test_lock.TestLock.test_readonly_file(fcntl)]

^^^^[log from bzrlib.tests.per_lock.test_lock.TestLock.test_readonly_file(fcntl)]
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/var/tmp/portage/dev-util/bzr-0.15/work/bzr-0.15/bzrlib/tests/per_lock/test_lock.py", line 67, in test_readonly_file
    self.assertRaises(IOError, open, 'a-file', 'rb+')
  File "/var/tmp/portage/dev-util/bzr-0.15/work/bzr-0.15/bzrlib/tests/__init__.py", line 814, in assertRaises
    raise self.failureException, "%s not raised" % excName
AssertionError: IOError not raised

----------------------------------------------------------------------
Ran 5754 tests in 741.257s

FAILED (failures=2)
381 tests skipped

Portage 2.1.2.3 (default-linux/amd64/2006.1/server, gcc-4.1.1, glibc-2.5-r0, 2.6.18-gentoo-r6 x86_64)
=================================================================
System uname: 2.6.18-gentoo-r6 x86_64 AMD Sempron(tm) Processor 2800+
Gentoo Base System release 1.12.9
Timestamp of tree: Wed, 04 Apr 2007 00:00:01 +0000
distcc 2.18.3 x86_64-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
ccache version 2.4 [enabled]
dev-lang/python:     2.4.3-r4
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     2.4-r6
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.61
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
sys-devel/binutils:  2.16.1-r3
sys-devel/gcc-config: 1.3.14
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.17-r2
ACCEPT_KEYWORDS="amd64"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=k8 -pipe -O2 -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/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/php/apache1-php5/ext-active/ /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"
CXXFLAGS="-march=k8 -pipe -O2 -ggdb"
DISTDIR="/opt/distfiles"
FEATURES="buildpkg ccache collision-protect distlocks fixpackages metadata-transfer parallel-fetch sandbox sfperms splitdebug strict test userfetch"
GENTOO_MIRRORS="ftp://10.0.0.3 http://mirror.uni-c.dk/pub/gentoo http://ftp.belnet.be/mirror/rsync.gentoo.org/gentoo"
LC_ALL="en_GB.UTF-8"
MAKEOPTS="-j2"
PKGDIR="/var/packages"
PORTAGE_RSYNC_EXTRA_OPTS="--timeout=60 --exclude=/.cache"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --filter=H_**/files/digest-*"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/var/repositories/gentoo"
PORTDIR_OVERLAY="/var/repositories/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="acpi alsa amd64 apache2 authdaemond bash-completion berkdb bitmap-fonts bzip2 cli cracklib crypt cups directfb dri dvb fam fbcon fortran gnutls gpm iconv imap isdnlog jpeg libg++ libwww lirc lm_sensors maildir mailwrapper midi mysql mythtv ncurses nls nptl nptlonly ntfs pam pcre pdf perl pic png ppds pppd python readline reflection reiser4 reiserfs samba sasl session snmp spl ssl sysfs syslog tcpd test truetype truetype-fonts type1-fonts unichrome unicode usb vhosts vim vorbis xml xorg zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" 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" ELIBC="glibc" INPUT_DEVICES="evdev keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIRC_DEVICES="hauppauge" USERLAND="GNU" VIDEO_CARDS="dummy fbdev v4l vesa vga via"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LDFLAGS, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS
Comment 1 Bo Ørsted Andresen (RETIRED) gentoo-dev 2007-04-04 06:10:36 UTC
Created attachment 115403 [details]
build log
Comment 2 Marien Zwart (RETIRED) gentoo-dev 2007-04-04 23:07:56 UTC
That seems to happen if you run the tests without FEATURES=userpriv. This has been raised on upstream's mailing list, I want to wait a bit to see if they come up with a nice solution for this. Leaving this bug open for now.
Comment 3 Markus Ullmann (RETIRED) gentoo-dev 2007-07-10 23:21:39 UTC
Refreshing this with 0.17, adding restrict=test to ebuild until this is solved
-----------

6773/6774 in 892s, 2 failed, 754 skipped, 1 missing features] bzrlib.merge3.intersect: .
[6774/6774 in 892s, 2 failed, 754 skipped, 1 missing features] bzrlib.option._parse_revision_str: .       bzr: /var/tmp/portage/dev-util/bzr-0.17/work/bzr-0.17/bzr
    bzrlib: /var/tmp/portage/dev-util/bzr-0.17/work/bzr-0.17/bzrlib

FAIL: test_lockdir.TestLockDir.test_lock_permission
    PermissionDenied not raised

FAIL: per_lock.test_lock.TestLock.test_readonly_file(fcntl)
    IOError not raised


======================================================================
FAIL: test_lock_permission (bzrlib.tests.test_lockdir.TestLockDir)

vvvv[log from bzrlib.tests.test_lockdir.TestLockDir.test_lock_permission]-----

^^^^[log from bzrlib.tests.test_lockdir.TestLockDir.test_lock_permission]-----
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/var/tmp/portage/dev-util/bzr-0.17/work/bzr-0.17/bzrlib/tests/test_lockdir.py", line 617, in test_lock_permission
    self.assertRaises(errors.PermissionDenied, ld1.attempt_lock)
AssertionError: PermissionDenied not raised

======================================================================
FAIL:
cleaning up...: .
 test_readonly_file (bzrlib.tests.per_lock.test_lock.TestLock)

vvvv[log from bzrlib.tests.per_lock.test_lock.TestLock.test_readonly_file(fcntl)]

^^^^[log from bzrlib.tests.per_lock.test_lock.TestLock.test_readonly_file(fcntl)]
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/var/tmp/portage/dev-util/bzr-0.17/work/bzr-0.17/bzrlib/tests/per_lock/test_lock.py", line 67, in test_readonly_file
    self.assertRaises(IOError, open, 'a-file', 'rb+')
AssertionError: IOError not raised

----------------------------------------------------------------------
Ran 6774 tests in 892.229s

FAILED (failures=2)
754 tests skipped
Comment 4 Ali Polatel (RETIRED) gentoo-dev 2007-09-06 08:59:41 UTC
Created attachment 130151 [details, diff]
bzr-0.90-tests-fix_root.patch

 Here is a patch that disables the locking permission tests when running as root for bzr-0.90. I plan to add this patch and bump bzr.
Comment 5 Bo Ørsted Andresen (RETIRED) gentoo-dev 2007-09-06 19:24:45 UTC
(In reply to comment #4)
> Created an attachment (id=130151) [edit]
> bzr-0.90-tests-fix_root.patch
> 
>  Here is a patch that disables the locking permission tests when running as
> root for bzr-0.90. I plan to add this patch and bump bzr.

Works for me (with or without userpriv). Thanks. :)
Comment 6 Ali Polatel (RETIRED) gentoo-dev 2007-09-26 14:57:27 UTC
 This is fixed with 0.90 - forgot to close the bug :) -