test: refactor: introduce replace_in_config helper#26956
test: refactor: introduce replace_in_config helper#26956maflcko merged 1 commit intobitcoin:masterfrom
replace_in_config helper#26956Conversation
|
The following sections might be updated with supplementary metadata relevant to reviewers and maintainers. ReviewsSee the guideline for information on the review process.
If your review is incorrectly listed, please react with 👎 to this comment and the bot will ignore it on the next update. |
kouloumos
left a comment
There was a problem hiding this comment.
Looks reasonable. Maybe you could also use the helper here:
bitcoin/test/functional/test_framework/test_framework.py
Lines 536 to 540 in 5271c77
7eb1a9d to
d14740f
Compare
Good catch, thanks! Done. |
kouloumos
left a comment
There was a problem hiding this comment.
ACK d14740f126c3df6784675ec427a994f5f6224071
brunoerg
left a comment
There was a problem hiding this comment.
crACK d14740f126c3df6784675ec427a994f5f6224071
d14740f to
6da0096
Compare
6da0096 to
b530d96
Compare
|
Force-pushed with a version that introduces the helper now as |
|
ACK b530d96 |
Currently two functional tests (p2p_permissions.py and wallet_crosschain.py) include quite similar code for substituting strings in a TestNode's bitcoind configuration file, so refactoring that out to a dedicated helper method seems to make sense (probably other tests could need that too in the future).