From e7c71e75ff167f2b2dc8cf4366ba8dff1892175e Mon Sep 17 00:00:00 2001 From: Jussi Pakkanen Date: Sat, 12 Jul 2025 23:07:40 +0300 Subject: 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 --- run_meson_command_tests.py | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/run_meson_command_tests.py b/run_meson_command_tests.py index 7265d3e03..79a3703b7 100755 --- a/run_meson_command_tests.py +++ b/run_meson_command_tests.py @@ -79,9 +79,13 @@ class CommandTests(unittest.TestCase): # If this call hangs CI will just abort. It is very hard to distinguish # between CI issue and test bug in that case. Set timeout and fail loud # instead. - p = subprocess.run(command, stdout=subprocess.PIPE, - env=env, text=True, - cwd=workdir, timeout=60 * 5) + p = subprocess.run(command, + stdout=subprocess.PIPE, + env=env, + encoding='utf-8', + text=True, + cwd=workdir, + timeout=60 * 5) print(p.stdout) if p.returncode != 0: raise subprocess.CalledProcessError(p.returncode, command) -- cgit v1.2.3