Failing tests on Ubuntu Linux

Adrian Buehlmann adrian at cadifra.com
Sun Feb 20 07:07:30 CST 2011


On 2011-02-20 13:36, Martin Geisler wrote:
> 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.
> 

Nice.

I can confirm this works smoothly here if I uninstall gettext again:

  adi at ubuntu1:~/hgrepos/hg-crew/tests$ python run-tests.py test-i18n.t
  s
  Skipped test-i18n.t: missing feature: GNU Gettext (msgfmt)
  # Ran 1 tests, 1 skipped, 0 failed.


More information about the Mercurial-devel mailing list