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-12 23:07:40 +0300 |
commit | e67688c2913b38415437ae2a395cab8c12814600 (patch) | |
tree | 15328e5843cdb398f60f5e135a0bf4253e9b79ac | |
parent | ee368943e8c6e4c93f7640248c693c1a89d1b374 (diff) | |
download | meson-fixci_again.zip meson-fixci_again.tar.gz meson-fixci_again.tar.bz2 |
Add encoding parameter to fix CI.fixci_again
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
-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 7265d3e..79a3703 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) |