Skip to content

Commit e7c71e7

Browse files
committed
Add encoding parameter to fix CI.
The test does not actually fail, but the test runner seems to think that if _anything_ gets printed to stderr, that is a failure. https://nibblestew.blogspot.com/2019/04/an-important-message-for-people.html
1 parent 0376d65 commit e7c71e7

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

run_meson_command_tests.py

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -79,9 +79,13 @@ def _run(self, command, workdir=None, env=None):
7979
# If this call hangs CI will just abort. It is very hard to distinguish
8080
# between CI issue and test bug in that case. Set timeout and fail loud
8181
# instead.
82-
p = subprocess.run(command, stdout=subprocess.PIPE,
83-
env=env, text=True,
84-
cwd=workdir, timeout=60 * 5)
82+
p = subprocess.run(command,
83+
stdout=subprocess.PIPE,
84+
env=env,
85+
encoding='utf-8',
86+
text=True,
87+
cwd=workdir,
88+
timeout=60 * 5)
8589
print(p.stdout)
8690
if p.returncode != 0:
8791
raise subprocess.CalledProcessError(p.returncode, command)

0 commit comments

Comments
 (0)