Skip to content

Commit

Permalink
meta: Add locale to the environment when running tests
Browse files Browse the repository at this point in the history
Click seems particularly upset if the locale is not UTF-8
  • Loading branch information
cdecker committed Jan 13, 2021
1 parent 980ab57 commit c4f6688
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .ci/test.py
Expand Up @@ -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,
Expand Down

0 comments on commit c4f6688

Please sign in to comment.