We had a long-standing unit test error on CPSSkins:
Failure in test testMsgExists (Products.CPSSkins.tests.testI18N.TestOneMsg)
Traceback (most recent call last):
File "./lib/python/Testing/ZopeTestCase/profiler.py", line 98, in __call__
File
"/home/fermigier/svn/CPS3/zope/Products/CPSSkins/tests/testI18N.py", line
164, in testMsgExists
self.fail(msg)
File
"/home/fermigier/svn/CPS3/3rdparty/Python/../../lib/python2.4/unittest.py
", line 301, in fail
raise self.failureException, msg
AssertionError: Comparing 'cpsskins-it.po' with 'cpsskins.pot' raised an
error,
exit code of msgcmp is: 256
/home/fermigier/svn/CPS3/zope/Products/CPSSkins/tests/../i18n/cpsskins.pot:1975:
this message is used but not defined...
/home/fermigier/svn/CPS3/zope/Products/CPSSkins/tests/../i18n/cpsskins-it.po:160
7: ...but this definition is similar
msgcmp: found 1 fatal error
I think I fixed the mistake in commit
http://svn.nuxeo.org/trac/pub/changeset/31300
Unfortunately it only appeared on platforms where msgcmp (Debian package
'gettext') was installed, which caused some difficulties on finding it.
Unfortunately (II) it was burried in the flurry of "2006-01-04 12:54:52
ERROR Zope.ZCatalog uncatalogObject unsuccessfully attempted to
uncatalog an object with a uid of xxx" that the unit tests spit (as I
asked before, is there any way to either suppress the problem or silence
the message since this causes serious problems to go unnotified?).
Another related question: I notice that the CPSSkins package has a "make
i18n" option that, IIUC, would have prevented this problem to appear in
the first place. But how do we make sure that this is always done ?
This make target relies on i18ndude. Which version of i18ndude is
supposed to be used ? I've tried the latest one (2.0) and got some
errors until I changed the command line (removed the '-s' option).
Why is this approach only implemented in CPSSkins and not in the other
products ? I would prefer a more consistent approach.
S.
--
Stéfane Fermigier, Tel: +33 (0)6 63 04 12 77 (mobile).
Nuxeo Collaborative Portal Server: http://www.nuxeo.com/cps
Gestion de contenu web / portail collaboratif / groupware / open source!
_______________________________________________
cps-devel mailing list
http://lists.nuxeo.com/mailman/listinfo/cps-devel