Skip to content

Commit

Permalink
Guard against the process redirecting stdout. Closes #3967.
Browse files Browse the repository at this point in the history
  • Loading branch information
jpakkane committed Sep 5, 2018
1 parent f50eb2d commit 277f39d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions mesonbuild/mtest.py
Expand Up @@ -366,6 +366,9 @@ def preexec_fn():
except subprocess.TimeoutExpired:
stdo = b'Test process could not be killed.'
stde = b''
except ValueError:
stdo = b'Could not read output. Maybe process has redirected its stdout/stderr?'
stde = b''
endtime = time.time()
duration = endtime - starttime
stdo = decode(stdo)
Expand Down

0 comments on commit 277f39d

Please sign in to comment.