Skip to content

Conversation

sdaftuar
Copy link
Member

Don't cleanup the datadir's on test failure.

I hope that this should make it easier to debug rare-failing tests, as we'll at least have the debug.log's available to go through.

@MarcoFalke: After this, we could perhaps add to the rpc-tests.py script some functionality to tail the last few hundred lines of debug.log for each node if a test fails, so that if a job fails in travis, we'll have more info to look at?

@jtimon
Copy link
Contributor

jtimon commented May 24, 2016

ACK

@paveljanik
Copy link
Contributor

ACK 64fc92f

@maflcko
Copy link
Member

maflcko commented May 24, 2016

Concept ACK. Wouldn't it make sense to also print("Not cleaning up dir %s" % self.options.tmpdir)?

Tailing the debug.log from rpc_tests.py makes sense, but would at least require #8098.

@btcdrak
Copy link
Contributor

btcdrak commented May 24, 2016

utACK 64fc92f

@jtimon
Copy link
Contributor

jtimon commented May 25, 2016

@arowser why are you asking the same question in so many random PRs?

This is disruptive or development and annoying. Please, stop.

@sdaftuar sdaftuar force-pushed the nocleanup-on-failure branch from 64fc92f to 1ad9339 Compare May 25, 2016 09:42
@sdaftuar
Copy link
Member Author

@MarcoFalke Updated with the print statement as suggested.

@maflcko
Copy link
Member

maflcko commented May 25, 2016

utACK 1ad9339

@jtimon
Copy link
Contributor

jtimon commented May 25, 2016

ACK 1ad9339

@maflcko maflcko merged commit 1ad9339 into bitcoin:master May 25, 2016
maflcko pushed a commit that referenced this pull request May 25, 2016
1ad9339 Test framework: only cleanup on successful test runs (Suhas Daftuar)
codablock pushed a commit to codablock/dash that referenced this pull request Dec 21, 2017
1ad9339 Test framework: only cleanup on successful test runs (Suhas Daftuar)
sickpig pushed a commit to sickpig/BitcoinUnlimited that referenced this pull request Mar 12, 2018
Core QA cherries

bitcoin/bitcoin#8047 - [qa] test_framework: Set wait-timeout for bitcoind procs
bitcoin/bitcoin#8095 - Test framework: only cleanup on successful test runs
bitcoin/bitcoin#8214 - [qa] mininode: fail on send_message instead of silent return
@bitcoin bitcoin locked as resolved and limited conversation to collaborators Sep 8, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants