Page MenuHomeSoftware Heritage

Ensure that tests run with the C.UTF-8 locale
ClosedPublic

Authored by olasd on Apr 1 2022, 11:23 AM.

Details

Summary

Some database tests depend on the text returned by the SQL client, which
is localized. Forcing the C locale ensures the text gets output in
English.

Test Plan

it works on my machine (now)...

Diff Detail

Repository
rDWAPPS Web applications
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

douardda accepted this revision.
This revision is now accepted and ready to land.Apr 1 2022, 11:36 AM

Build is green

Patch application report for D7483 (id=27143)

Rebasing onto e28c8b5e78...

Current branch diff-target is up to date.
Changes applied before test
commit ad5add7d36e60813120b5b687946e5b2b3933c4c
Author: Nicolas Dandrimont <nicolas@dandrimont.eu>
Date:   Fri Apr 1 11:21:13 2022 +0200

    Ensure that tests run with the C.UTF-8 locale
    
    Some database tests depend on the text returned by the SQL client, which
    is localized. Forcing the C locale ensures the text gets output in
    English.

commit b7d6c93148e92a1e1c128aba0fd5eb278bbd817b
Author: Nicolas Dandrimont <nicolas@dandrimont.eu>
Date:   Fri Apr 1 11:17:45 2022 +0200

    Move add_forge_now migration tests with other add_forge_now tests

See https://jenkins.softwareheritage.org/job/DWAPPS/job/tests-on-diff/1644/ for more details.