2
0
mirror of https://gitlab.com/ita1024/waf.git synced 2024-11-22 09:57:15 +01:00

Re-raise TimeoutExpired from process executors

This commit is contained in:
Thomas Nagy 2016-09-03 22:36:41 +02:00
parent af172413f4
commit fc2946ce64
No known key found for this signature in database
GPG Key ID: 49B4C67C05277AAA

View File

@ -852,6 +852,10 @@ def run_prefork_process(cmd, kwargs, cargs):
raise OSError(trace)
elif ex == 'ValueError':
raise ValueError(trace)
elif ex == 'TimeoutExpired':
exc = TimeoutExpired(cmd, timeout=cargs['timeout'], output=out)
exc.stderr = err
raise exc
else:
raise Exception(trace)
return ret, out, err