MarcoFalke
commented at 1:41 PM on June 20, 2019:
member
This makes it easier to debug a frozen test or a test that failed. To debug a failed test, remove the line fs::remove_all(m_path_root);.
The pull is done in three commits:
Create a datadir for every unit test once (and only once). This requires the SetDataDir function to go away.
Use the common setup in the gui unit tests. Some of those tests are testing the init sequence, so we'd have to undo some of what the testing setup did.
Log to the debug.log in all tests
test: Create data dir in BasicTestingSetupfad3d2a624
test: use common setup in gui testsfa4a04a5a9
DrahtBot added the label GUI on Jun 20, 2019
DrahtBot added the label Tests on Jun 20, 2019
DrahtBot added the label Wallet on Jun 20, 2019
MarcoFalke removed the label Wallet on Jun 20, 2019
MarcoFalke force-pushed on Jun 20, 2019
MarcoFalke force-pushed on Jun 20, 2019
MarcoFalke force-pushed on Jun 20, 2019
laanwj
commented at 3:54 PM on June 20, 2019:
member
Concept ACK. I think logging can be useful for tests.
To be clear: this creates a temporary data directory for debug.log right, it doesn't touch the default data directory?
MarcoFalke
commented at 3:57 PM on June 20, 2019:
member
Yes, that should absolutely never happen, with or without this pull request. See also:
DrahtBot
commented at 10:33 PM on June 23, 2019:
contributor
<!--e57a25ab6845829454e8d69fc972939a-->
The following sections might be updated with supplementary metadata relevant to reviewers and maintainers.
<!--174a7506f384e20aa4161008e828411d-->
Conflicts
Reviewers, this pull request conflicts with the following ones:
#16278 (tests: Reduce compilation time and unneccessary recompiles by removing unused includes in tests by practicalswift)
#16273 (refactor: Reduce total compilation time by 2% and avoid unnecessary recompiles by removing unused includes by practicalswift)
If you consider this pull request important, please also help to review the conflicting pull requests. Ideally, start with the one that should be merged first.
laanwj
commented at 10:12 AM on June 25, 2019:
member
code review, tested that debug.logs are being created under ./test_common_Bitcoin Core/*/debug.logACKfabc57e07dc34c103552cb51c9277bb48ef97739
laanwj merged this on Jun 25, 2019
laanwj closed this on Jun 25, 2019
laanwj referenced this in commit c52776e6ff on Jun 25, 2019
This is a metadata mirror of the GitHub repository
bitcoin/bitcoin.
This site is not affiliated with GitHub.
Content is generated from a GitHub metadata backup.
generated: 2026-05-20 06:54 UTC