Bug#623960: python-apt: FTBFS: Test failure

2011-05-08 Thread Daniel Schepler
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?
-- 
Daniel Schepler



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org



Bug#623960: python-apt: FTBFS: Test failure

2011-04-26 Thread Julian Andres Klode
severity 623960 normal
tags 623960 unreproducible moreinfo
thanks

On So, 2011-04-24 at 13:00 -0700, Daniel Schepler wrote:
> 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

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).

-- 
Julian Andres Klode  - Debian Developer, Ubuntu Member

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





-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org



Bug#623960: python-apt: FTBFS: Test failure

2011-04-24 Thread Daniel Schepler
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



--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org