On Sat, 29 Jan 2011 20:57:11 -0000, Loïc Minier <email address hidden> wrote: > Public bug reported: > > Hey > > I backported various packages to lucid in the ~linaro-maitainers/tools > PPA and in my own ~lool PPA and managed to get the package mostly > building, but the testsuite fails as follows: > ====================================================================== > FAIL: hwpack.tests.test_packages.PackageFetcherTests.test_fetch_packages_fetches_preferred_label > ---------------------------------------------------------------------- > Text attachment: traceback > ------------ > Traceback (most recent call last): > File "/usr/lib/python2.6/dist-packages/testtools/runtest.py", line 169, in _run_user > return fn(*args, **kwargs) > File "/usr/lib/python2.6/dist-packages/testtools/testcase.py", line 499, in _run_test_method > return self._get_test_method()() > File "hwpack/tests/test_packages.py", line 991, in test_fetch_packages_fetches_preferred_label > lower_package, fetcher.fetch_packages(["foo"])[0]) > File "/usr/lib/python2.6/dist-packages/testtools/testcase.py", line 268, in assertEqual > self.assertThat(observed, matcher) > File "/usr/lib/python2.6/dist-packages/testtools/testcase.py", line 345, in assertThat > % (matchee, matcher, mismatch.describe())) > AssertionError: Match failed. Matchee: "<FetchedPackage name=foo version=2.0 size=26 md5=cb378af052f648546d80b046ac89f4c7 architecture=all depends="None" pre_depends="None" conflicts="None" recommends="None" provides="None" replaces="None" breaks="None" has_content=yes>" > Matcher: Equals(<DummyFetchedPackage name=foo version=1.0 size=26 md5=ba438032c945498b6f186f71f5ba5b3e architecture=all depends="None" pre_depends="None" conflicts="None" recommends="None" provides="None" replaces="None" breaks="None" has_content=yes>) > Difference: !=: > reference = <DummyFetchedPackage name=foo version=1.0 size=26 md5=ba438032c945498b6f186f71f5ba5b3e architecture=all depends="None" pre_depends="None" conflicts="None" recommends="None" provides="None" replaces="None" breaks="None" has_content=yes> > actual = <FetchedPackage name=foo version=2.0 size=26 md5=cb378af052f648546d80b046ac89f4c7 architecture=all depends="None" pre_depends="None" conflicts="None" recommends="None" provides="None" replaces="None" breaks="None" has_content=yes>
The other failure is likely due the same cause as this one.
It looks to me from the failure as though apt in lucid doesn't support selecting a preferred repo based on label.
It may be a bug in our code, but if it's not then I don't think we can support this feature on lucid, and so should make it conditional somehow.
Thanks,
James
On Sat, 29 Jan 2011 20:57:11 -0000, Loïc Minier <email address hidden> wrote: maitainers/ tools ======= ======= ======= ======= ======= ======= ======= ======= ======= tests.test_ packages. PackageFetcherT ests.test_ fetch_packages_ fetches_ preferred_ label ------- ------- ------- ------- ------- ------- ------- ------- ------- python2. 6/dist- packages/ testtools/ runtest. py", line 169, in _run_user python2. 6/dist- packages/ testtools/ testcase. py", line 499, in _run_test_method test_method( )() tests/test_ packages. py", line 991, in test_fetch_ packages_ fetches_ preferred_ label fetch_packages( ["foo"] )[0]) python2. 6/dist- packages/ testtools/ testcase. py", line 268, in assertEqual (observed, matcher) python2. 6/dist- packages/ testtools/ testcase. py", line 345, in assertThat describe( ))) 648546d80b046ac 89f4c7 architecture=all depends="None" pre_depends="None" conflicts="None" recommends="None" provides="None" replaces="None" breaks="None" has_content=yes>" <DummyFetchedPa ckage name=foo version=1.0 size=26 md5=ba438032c94 5498b6f186f71f5 ba5b3e architecture=all depends="None" pre_depends="None" conflicts="None" recommends="None" provides="None" replaces="None" breaks="None" has_content=yes>) ckage name=foo version=1.0 size=26 md5=ba438032c94 5498b6f186f71f5 ba5b3e architecture=all depends="None" pre_depends="None" conflicts="None" recommends="None" provides="None" replaces="None" breaks="None" has_content=yes> 648546d80b046ac 89f4c7 architecture=all depends="None" pre_depends="None" conflicts="None" recommends="None" provides="None" replaces="None" breaks="None" has_content=yes>
> Public bug reported:
>
> Hey
>
> I backported various packages to lucid in the ~linaro-
> PPA and in my own ~lool PPA and managed to get the package mostly
> building, but the testsuite fails as follows:
> =======
> FAIL: hwpack.
> -------
> Text attachment: traceback
> ------------
> Traceback (most recent call last):
> File "/usr/lib/
> return fn(*args, **kwargs)
> File "/usr/lib/
> return self._get_
> File "hwpack/
> lower_package, fetcher.
> File "/usr/lib/
> self.assertThat
> File "/usr/lib/
> % (matchee, matcher, mismatch.
> AssertionError: Match failed. Matchee: "<FetchedPackage name=foo version=2.0 size=26 md5=cb378af052f
> Matcher: Equals(
> Difference: !=:
> reference = <DummyFetchedPa
> actual = <FetchedPackage name=foo version=2.0 size=26 md5=cb378af052f
The other failure is likely due the same cause as this one.
It looks to me from the failure as though apt in lucid doesn't support
selecting a preferred repo based on label.
It may be a bug in our code, but if it's not then I don't think we can
support this feature on lucid, and so should make it conditional
somehow.
Thanks,
James