[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#623960: marked as done (python-apt: Tests depend on repositories configured on the system)



Your message dated Tue, 8 Oct 2013 21:23:36 +0200
with message-id <20131008212315.GA16375@debian.org>
and subject line Re: Bug#623960: python-apt: FTBFS: Test failure
has caused the Debian Bug report #623960,
regarding python-apt: Tests depend on repositories configured on the system
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact owner@bugs.debian.org
immediately.)


-- 
623960: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=623960
Debian Bug Tracking System
Contact owner@bugs.debian.org with problems
--- Begin Message ---
Source: python-apt
Version: 0.7.100.3
Severity: serious

From my pbuilder build log:

...
   debian/rules override_dh_auto_test
make[1]: Entering directory `/tmp/buildd/python-apt-0.7.100.3'
set -e; for python in python2.7 python2.6 python3.2 ; do \
                $python tests/test_all.py -q || [ "linux" = "hurd" ]; \
        done;
[tests] Running on 2.7.1+ (default, Apr 20 2011, 14:51:56) [GCC 4.5.2]
Reading package lists... Done
Building dependency tree       
Reading state information... Done
======================================================================
FAIL: test_get_provided_packages (test_apt_cache.TestAptCache)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/tmp/buildd/python-apt-0.7.100.3/tests/test_apt_cache.py", line 68, in 
test_get_provided_packages
    self.assertEqual([p.name for p in l], ["git"])
AssertionError: Lists differ: [] != ['git']

Second list contains 1 additional elements.
First extra element 0:
git

- []
+ ['git']

----------------------------------------------------------------------
Ran 35 tests in 6.267s

FAILED (failures=1)
make[1]: *** [override_dh_auto_test] Error 1
make[1]: Leaving directory `/tmp/buildd/python-apt-0.7.100.3'
make: *** [build] Error 2
dpkg-buildpackage: error: debian/rules build gave error exit status 2
-- 
Daniel Schepler



--- End Message ---
--- Begin Message ---
On Sun, May 08, 2011 at 09:59:00AM -0700, Daniel Schepler wrote:
> On Tuesday 26 April 2011 02:43:10 Julian Andres Klode wrote:
> > In what hell of broken environment do you build packages in? git still
> > provides git-core, thus the test cannot fail yet (and does not fail in
> > an up-to-date sid sbuild environment or the buildds).
> 
> OK, this was in fact in my pbuildd environment, where the aim is to rebuild 
> Debian from scratch (or as much so as possible).  So the apt repository it 
> uses as a package source only contains packages which have been built so far, 
> and at the time of getting to python-apt it hadn't built git yet.
> 
> But in general, it just seems like a bad idea to depend on the global apt 
> lists to be in a certain state for the tests.  For example, what if the git 
> package maintainers decide to drop the transitional packages and provides?  Or 
> worse yet, drop just the transitional packages and keep the provides, so the 
> test as I read it might pass but won't be testing what it's supposed to.  
> Couldn't you provide a small Packages file which contains what you need and 
> make the tests more self-contained?

This seems to be fixed now.

-- 
Julian Andres Klode  - Debian Developer, Ubuntu Member

See http://wiki.debian.org/JulianAndresKlode and http://jak-linux.org/.

--- End Message ---

Reply to: