Hi there,
I just stuck with running with simpletests when I tried to integrate the D7 into our continuous integration environment.
After some investigation the issue was related to the multiple languages which where enabled in our project.
Issue appears on the db setup routine.
This routine reads all the necessary scheme - including comments.
If a comment is too long it's truncated with the method truncate_utf8
This method will load the whole translation stuff if the parameter $add_ellipsis is enabled - this will lead to a fatal error because the translation stuff tries to work with the new db_prefix and fails to find the needed tables.
To prevent this behaviour I tried to set the current language to "en" before start any of the installation stuff.
Until now I don't see a drawback doing this - but feedback or other approaches to fix this are highly welcome :)
Cheers,
Peter
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | simpleTestSetupLanguageFix.diff | 1.01 KB | das-peter |
| simpleTestSetupLanguageFix.diff | 811 bytes | das-peter |
Comments
Comment #1
das-peter commentedHi there,
Just found a similar issue report:
http://drupal.org/node/300412
Comment #2
das-peter commentedChanged project / component information according to the found issue.
Comment #3
das-peter commentedOuch former patch was done with debugging stuff - sorry :|
New one contains correct code.
Cheers,
Peter
Comment #4
jbrown commented#276153: Testing does not work at all when locale of host session is not English