mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2024-12-23 23:02:25 +00:00
Try to report the child process output
This commit is contained in:
parent
7e9e447d5b
commit
bedf092ca3
@ -10,7 +10,10 @@ from tempfile import mkdtemp, mktemp
|
|||||||
from twisted.python.procutils import which
|
from twisted.python.procutils import which
|
||||||
from twisted.internet.defer import Deferred, DeferredList
|
from twisted.internet.defer import Deferred, DeferredList
|
||||||
from twisted.internet.task import deferLater
|
from twisted.internet.task import deferLater
|
||||||
from twisted.internet.error import ProcessExitedAlready
|
from twisted.internet.error import (
|
||||||
|
ProcessExitedAlready,
|
||||||
|
ProcessTerminated,
|
||||||
|
)
|
||||||
|
|
||||||
import pytest
|
import pytest
|
||||||
|
|
||||||
@ -476,7 +479,12 @@ def tor_network(reactor, temp_dir, chutney, request):
|
|||||||
path=join(chutney_dir),
|
path=join(chutney_dir),
|
||||||
env={"PYTHONPATH": join(chutney_dir, "lib")},
|
env={"PYTHONPATH": join(chutney_dir, "lib")},
|
||||||
)
|
)
|
||||||
pytest.blockon(proto.done)
|
try:
|
||||||
|
pytest.blockon(proto.done)
|
||||||
|
except ProcessTerminated:
|
||||||
|
print("Chutney.TorNet failed:")
|
||||||
|
print(proto.output.getvalue())
|
||||||
|
raise
|
||||||
|
|
||||||
def cleanup():
|
def cleanup():
|
||||||
print("Tearing down Chutney Tor network")
|
print("Tearing down Chutney Tor network")
|
||||||
|
Loading…
Reference in New Issue
Block a user