meta: Add locale to the environment when running tests

Click seems particularly upset if the locale is not UTF-8
This commit is contained in:
Christian Decker
2021-01-09 12:01:09 +01:00
parent 980ab57a88
commit c4f6688ffd

View File

@@ -101,10 +101,14 @@ def run_one(p: Plugin) -> bool:
print("Running tests")
try:
env = env={
env = os.environ.copy()
env.update({
# Need to customize PATH so lightningd can find the correct python3
'PATH': "{}:{}".format(bin_path, os.environ['PATH']),
}
# Some plugins require a valid locale to be set
'LC_ALL': 'C.UTF-8',
'LANG': 'C.UTF-8',
})
subprocess.check_call(
[
pytest_path,