Failing tests on Ubuntu Linux

Martin Geisler mg at lazybytes.net
Sun Feb 20 06:36:07 CST 2011


Adrian Buehlmann <adrian at cadifra.com> writes:

> On 2011-02-20 11:24, Martin Geisler wrote:
>> Adrian Buehlmann <adrian at cadifra.com> writes:
>> 
>>> On 2011-02-18 04:00, Mads Kiilerich wrote:
>>>> Adrian Buehlmann wrote, On 02/18/2011 02:42 AM:
>>>
>>>>> ERROR: /home/adi/hgrepos/hg-crew/tests/test-i18n.t output changed
>>>>> --- /home/adi/hgrepos/hg-crew/tests/test-i18n.t
>>>>> +++ /home/adi/hgrepos/hg-crew/tests/test-i18n.t.err
>>>>> @@ -4,17 +4,17 @@
>>>>>   using the "replace" error handler:
>>>>>
>>>>>     $ LANGUAGE=pt_BR hg tip
>>>>> -  abortado: N?o h? um reposit?rio do Mercurial aqui (.hg n?o encontrado)!
>>>>> +  abort: There is no Mercurial repository here (.hg not found)!
>>>>>     [255]
>> 
>> I had this test case lying around locally for a while after Brodie asked
>> me if it was possible to test the translations with our test suite.
>> 
>>>> That doesn't fail here, so I guess there might be something in your
>>>> environment that makes a difference.
>>>
>>> I've just downloaded an Ubuntu ISO and installed it in a VM on my
>>> Windows 7. I remember having installed a couple of their software
>>> packages (e.g. python, python devel) to get mercurial working.
>> 
>> Did you install the gettext package? That is needed to compile the .po
>> files into .mo files.
>> 
>
> Ahh. A missing gettext package was indeed the culprit.
>
> After installing a package named "0.18.1.1-1ubuntu2 (maverick)"
> (Description: "GNU Internationalization utilities") in a thing they call
> the "Synaptic Package Manager", the test passes now.
>
> Thanks for the hint!
>
> (/me wonders why there wasn't an explicit error message for this...)

The setup.py file skips the compilation with a warning message if the
msgfmt program is not found. I've now added a check to hghave for this
so that the test is skipped when translations are not built.

-- 
Martin Geisler

Mercurial links: http://mercurial.ch/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: not available
URL: <http://selenic.com/pipermail/mercurial-devel/attachments/20110220/505f2c78/attachment.pgp>


More information about the Mercurial-devel mailing list