We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 9851498 + 0828619 commit d7ba4a2Copy full SHA for d7ba4a2
qa/rpc-tests/test_framework/test_framework.py
@@ -172,7 +172,16 @@ def main(self):
172
os.rmdir(self.options.root)
173
else:
174
print("Not cleaning up dir %s" % self.options.tmpdir)
175
-
+ if os.getenv("PYTHON_DEBUG", ""):
176
+ # Dump the end of the debug logs, to aid in debugging rare
177
+ # travis failures.
178
+ import glob
179
+ filenames = glob.glob(self.options.tmpdir + "/node*/regtest/debug.log")
180
+ MAX_LINES_TO_PRINT = 1000
181
+ for f in filenames:
182
+ print("From" , f, ":")
183
+ from collections import deque
184
+ print("".join(deque(open(f), MAX_LINES_TO_PRINT)))
185
if success:
186
print("Tests successful")
187
sys.exit(0)
0 commit comments