-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
use LC_ALL=C in unit-test's #8905
Conversation
@mrsdizzie created PR ... |
Is this because git commands may run in different locales and you get different error messages? If so #8548 will fix this. |
|
|
|
|
Codecov Report
@@ Coverage Diff @@
## master #8905 +/- ##
=========================================
+ Coverage 41.19% 41.2% +0.01%
=========================================
Files 544 544
Lines 70096 70096
=========================================
+ Hits 28877 28886 +9
+ Misses 37519 37511 -8
+ Partials 3700 3699 -1
Continue to review full report at Codecov.
|
Why not just...?
|
I don't think you'd want to set that for every command run (you probably do want to keep most things in your language). This is just a particular work around for the fact that unit tests require things to be output in English and can be limited to that. |
@zeripath big thanks! |
This PR migrates temp_repo.go to use git.NewCommand instead creating processes by itself - this fixes the problem underlying PR #8905. There are other places that run git outside of the controlled locale defined in #8548 but temp_repo.go is the only cause of failure of local testing in cases where English is not the default - implying that error messages from those other commands are not interpreted. Replaces #8905
make test uses same locales always !