aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaolo Bonzini <pbonzini@redhat.com>2021-01-22 12:10:05 +0100
committerPaolo Bonzini <pbonzini@redhat.com>2021-01-22 12:18:59 +0100
commit52a2f46af16ce040e97110b55dead36ab4d50f0f (patch)
treeecbe8ebe844370a992813aefb6244a5ddea76c53
parentadb1b2f3f6ad54b346348ec6e5b8d96f2f7ba0a6 (diff)
downloadmeson-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-xrun_unittests.py1
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: