unittests: use utf-8 encoding for child processes

Ensure that unit tests will be able to parse UTF-8 output of "meson test".
pull/8200/head
Paolo Bonzini 4 years ago
parent adb1b2f3f6
commit 52a2f46af1
  1. 1
      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:

Loading…
Cancel
Save