mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2025-06-17 23:08:21 +00:00
Allow an error exit status from flogtool dump
If the flog is truncated, parsing it will fail and flogtool will exit with an error. There's no particular reason to allow this to fail a test.
This commit is contained in:
@ -124,7 +124,12 @@ def flog_gatherer(reactor, temp_dir, flog_binary, request):
|
||||
'flogtool', 'dump', join(temp_dir, 'flog_gather', flogs[0])
|
||||
),
|
||||
)
|
||||
pytest_twisted.blockon(flog_protocol.done)
|
||||
print("Waiting for flogtool to complete")
|
||||
try:
|
||||
pytest_twisted.blockon(flog_protocol.done)
|
||||
except ProcessTerminated as e:
|
||||
print("flogtool exited unexpectedly: {}".format(str(e)))
|
||||
print("Flogtool completed")
|
||||
|
||||
request.addfinalizer(cleanup)
|
||||
|
||||
|
Reference in New Issue
Block a user