diff options
author | Wladimir J. van der Laan <laanwj@gmail.com> | 2014-10-02 09:08:18 +0200 |
---|---|---|
committer | Wladimir J. van der Laan <laanwj@gmail.com> | 2014-10-02 09:08:33 +0200 |
commit | 3b390723c16d13271ee2675aff013fdd95d39c18 (patch) | |
tree | c3d7a2dbb2868954748761161896cc8f02b940b1 | |
parent | 00eef5d6e9b08b173492599ec41c7feb445e2139 (diff) | |
parent | 5ad450a65ad2b0e7760d77816800bd51826ed175 (diff) | |
download | bitcoin-3b390723c16d13271ee2675aff013fdd95d39c18.tar.xz |
Merge pull request #5025
5ad450a travis: If the comparison-tool fails, dump the tail of the debug log (Cory Fields)
-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 |