diff options
author | Paolo Bonzini <pbonzini@redhat.com> | 2021-01-22 12:10:05 +0100 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2021-01-22 12:18:59 +0100 |
commit | 52a2f46af16ce040e97110b55dead36ab4d50f0f (patch) | |
tree | ecbe8ebe844370a992813aefb6244a5ddea76c53 | |
parent | adb1b2f3f6ad54b346348ec6e5b8d96f2f7ba0a6 (diff) | |
download | meson-52a2f46af16ce040e97110b55dead36ab4d50f0f.zip meson-52a2f46af16ce040e97110b55dead36ab4d50f0f.tar.gz meson-52a2f46af16ce040e97110b55dead36ab4d50f0f.tar.bz2 |
unittests: use utf-8 encoding for child processes
Ensure that unit tests will be able to parse UTF-8 output of "meson test".
-rwxr-xr-x | run_unittests.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/run_unittests.py b/run_unittests.py index b244a07..8762b9c 100755 --- a/run_unittests.py +++ b/run_unittests.py @@ -1600,6 +1600,7 @@ class BasePlatformTests(unittest.TestCase): p = subprocess.run(command, stdout=subprocess.PIPE, stderr=subprocess.STDOUT, env=env, + encoding='utf-8', universal_newlines=True, cwd=workdir, timeout=60 * 5) print(p.stdout) if p.returncode != 0: |