From 52a2f46af16ce040e97110b55dead36ab4d50f0f Mon Sep 17 00:00:00 2001 From: Paolo Bonzini Date: Fri, 22 Jan 2021 12:10:05 +0100 Subject: unittests: use utf-8 encoding for child processes Ensure that unit tests will be able to parse UTF-8 output of "meson test". --- run_unittests.py | 1 + 1 file changed, 1 insertion(+) (limited to 'run_unittests.py') diff --git a/run_unittests.py b/run_unittests.py index b244a07ea..8762b9ca5 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: -- cgit v1.2.3