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:
member
The following sections might be updated with supplementary metadata relevant to reviewers and maintainers.
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
MarcoFalke deleted the branch
on Jun 25, 2019
sidhujag referenced this in commit
dd92d69365
on Jun 30, 2019
deadalnix referenced this in commit
abd12750b3
on Mar 26, 2020
Munkybooty referenced this in commit
296eb2a0cf
on Oct 30, 2021
Munkybooty referenced this in commit
46d98ef34d
on Oct 30, 2021
Munkybooty referenced this in commit
b0358e0034
on Nov 2, 2021
Munkybooty referenced this in commit
9393b05dd9
on Nov 2, 2021
Munkybooty referenced this in commit
642425c786
on Nov 4, 2021
Munkybooty referenced this in commit
9be93e871e
on Nov 16, 2021
Munkybooty referenced this in commit
6d6630d251
on Nov 18, 2021
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: 2024-12-18 18:12 UTC
This site is hosted by @0xB10C More mirrored repositories can be found on mirror.b10c.me