aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild/mtest.py
diff options
context:
space:
mode:
authorJussi Pakkanen <jpakkane@gmail.com>2018-09-05 21:13:15 +0300
committerJussi Pakkanen <jpakkane@gmail.com>2018-09-06 19:19:32 +0300
commit8ca463f9f1d432d059c12da42a18fd13b4604b57 (patch)
tree0575fd8b0d64d4e8d70502d9eeb74cd203fb22b8 /mesonbuild/mtest.py
parent7e754518677003a6b5760cfb57775f5f9dde597a (diff)
downloadmeson-8ca463f9f1d432d059c12da42a18fd13b4604b57.zip
meson-8ca463f9f1d432d059c12da42a18fd13b4604b57.tar.gz
meson-8ca463f9f1d432d059c12da42a18fd13b4604b57.tar.bz2
Guard against the process redirecting stdout. Closes #3967.
Diffstat (limited to 'mesonbuild/mtest.py')
-rw-r--r--mesonbuild/mtest.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/mesonbuild/mtest.py b/mesonbuild/mtest.py
index 910136f..8d9a585 100644
--- a/mesonbuild/mtest.py
+++ b/mesonbuild/mtest.py
@@ -366,6 +366,9 @@ class SingleTestRunner:
except subprocess.TimeoutExpired:
stdo = b'Test process could not be killed.'
stde = b''
+ except ValueError:
+ stdo = b'Could not read output. Maybe the process has redirected its stdout/stderr?'
+ stde = b''
endtime = time.time()
duration = endtime - starttime
stdo = decode(stdo)