mirror of
https://github.com/aljazceru/plugins.git
synced 2025-12-24 00:24:19 +01:00
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:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user