Guard against the process redirecting stdout. Closes #3967.

pull/2393/head
Jussi Pakkanen 6 years ago
parent 7e75451867
commit 8ca463f9f1
  1. 3
      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)

Loading…
Cancel
Save