* wrap/python/spot.py: Check exit status also when timeout is used.
This commit is contained in:
parent
82ce722d42
commit
b6c8a18dbc
1 changed files with 5 additions and 0 deletions
|
|
@ -380,6 +380,11 @@ def automata(*sources, timeout=None):
|
||||||
# would just kill the shell, not its children.
|
# would just kill the shell, not its children.
|
||||||
os.killpg(proc.pid, signal.SIGKILL)
|
os.killpg(proc.pid, signal.SIGKILL)
|
||||||
raise
|
raise
|
||||||
|
else:
|
||||||
|
ret = proc.wait()
|
||||||
|
if ret:
|
||||||
|
raise subprocess.CalledProcessError(ret,
|
||||||
|
filename[:-1])
|
||||||
finally:
|
finally:
|
||||||
proc = None
|
proc = None
|
||||||
p = automaton_stream_parser(out, filename, True)
|
p = automaton_stream_parser(out, filename, True)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue