diff options
| author | Wladimir J. van der Laan <[email protected]> | 2014-10-02 09:08:18 +0200 |
|---|---|---|
| committer | Wladimir J. van der Laan <[email protected]> | 2014-10-02 09:08:33 +0200 |
| commit | 3b390723c16d13271ee2675aff013fdd95d39c18 (patch) | |
| tree | c3d7a2dbb2868954748761161896cc8f02b940b1 | |
| parent | Merge pull request #5017 (diff) | |
| parent | travis: If the comparison-tool fails, dump the tail of the debug log (diff) | |
| download | discoin-3b390723c16d13271ee2675aff013fdd95d39c18.tar.xz discoin-3b390723c16d13271ee2675aff013fdd95d39c18.zip | |
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 67318e5a4..210fc3c42 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 |