I have a go unit test that needs to have `LANG=` s...
# general
p
I have a go unit test that needs to have
LANG=
set in the environment to force the locale. There's a golang setting for this,
subprocess_env_vars
, but it doesn't appear to be used when running tests -- both based on what I see from a trace and the documentation:
Environment variables to set when invoking the
go
tool.
Tests aren't run via the
go
tool, they are compiled into a separate test runner which is then executed. I can set this environment variable within my test code but it would be handy if there was a similar kind of
test_vars
setting available in either
[golang]
or
[go-test]
-- or the behavior of the existing setting was changed to include using those vars when running tests.
b
Unfortunately, that subsystem is only ever used for Python today (I think we have an issue filed). What you suggest is something I think we also have an issue filed for (more of these, and scoped)