diff options
author | Cory Fields <cory-nospam-@coryfields.com> | 2014-10-01 16:47:33 -0400 |
---|---|---|
committer | Cory Fields <cory-nospam-@coryfields.com> | 2014-10-01 16:47:33 -0400 |
commit | 5ad450a65ad2b0e7760d77816800bd51826ed175 (patch) | |
tree | d66ecc6dfa821a2e5186832d14d9d6b62e766440 /qa/pull-tester | |
parent | 1fbccda8d0d5ccfeef46e10253315c5c6977817c (diff) |
travis: If the comparison-tool fails, dump the tail of the debug log
The entire debug log would be huge, and could cause issues for automated tools
like travis. Printing 200 lines is an initial guess at a reasonable number,
more may be required.
Diffstat (limited to 'qa/pull-tester')
-rwxr-xr-x | qa/pull-tester/run-bitcoind-for-test.sh.in | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/qa/pull-tester/run-bitcoind-for-test.sh.in b/qa/pull-tester/run-bitcoind-for-test.sh.in index 67318e5a4c..210fc3c42f 100755 --- a/qa/pull-tester/run-bitcoind-for-test.sh.in +++ b/qa/pull-tester/run-bitcoind-for-test.sh.in @@ -29,4 +29,8 @@ fi kill $BITCOIND && wait $BITCOIND # timeout returns 124 on timeout, otherwise the return value of the child + +# If $RETURN is not 0, the test failed. Dump the tail of the debug log. +if [ $RETURN -ne 0 ]; then tail -n 200 $DATADIR/regtest/debug.log; fi + exit $RETURN |