Try to report the child process output

This commit is contained in:
Jean-Paul Calderone 2019-01-24 14:48:09 -05:00
parent 7e9e447d5b
commit bedf092ca3

View File

@ -10,7 +10,10 @@ from tempfile import mkdtemp, mktemp
from twisted.python.procutils import which
from twisted.internet.defer import Deferred, DeferredList
from twisted.internet.task import deferLater
from twisted.internet.error import ProcessExitedAlready
from twisted.internet.error import (
ProcessExitedAlready,
ProcessTerminated,
)
import pytest
@ -476,7 +479,12 @@ def tor_network(reactor, temp_dir, chutney, request):
path=join(chutney_dir),
env={"PYTHONPATH": join(chutney_dir, "lib")},
)
try:
pytest.blockon(proto.done)
except ProcessTerminated:
print("Chutney.TorNet failed:")
print(proto.output.getvalue())
raise
def cleanup():
print("Tearing down Chutney Tor network")