Comment 1 for bug 709895

Revision history for this message
James Westby (james-w) wrote : Re: [Bug 709895] [NEW] Testsuite fails under lucid

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