diff options
| author | Jussi Pakkanen <jussi.pakkanen@mailbox.org> | 2025-07-12 23:07:40 +0300 |
|---|---|---|
| committer | Jussi Pakkanen <jussi.pakkanen@mailbox.org> | 2025-07-16 22:53:11 +0300 |
| commit | e7c71e75ff167f2b2dc8cf4366ba8dff1892175e (patch) | |
| tree | 0907c90c90a217e648badaca2791aaf721bf698e /run_meson_command_tests.py | |
| parent | 0376d655694747ba36aa2bfd94e5bce2d2f1efa8 (diff) | |
| download | meson-e7c71e75ff167f2b2dc8cf4366ba8dff1892175e.tar.gz | |
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
Diffstat (limited to 'run_meson_command_tests.py')
| -rwxr-xr-x | run_meson_command_tests.py | 10 |
1 files 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) |
