-
Notifications
You must be signed in to change notification settings - Fork 37.7k
scripted-diff: Use generate* from TestFramework #22788
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tested ACK fac8937 on Ubuntu 20.04
The following sections might be updated with supplementary metadata relevant to reviewers and maintainers. ConflictsReviewers, this pull request conflicts with the following ones:
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. |
fac8937
to
fa22469
Compare
I guess I'm the cause of the rebase, will review to move this forward. |
-BEGIN VERIFY SCRIPT- sed --regexp-extended -i \ 's/((self\.)?(nodes\[[^]]+\]|[a-z_]*(wallet|node)[0-9a-z_]*))\.(generate(|toaddress|block|todescriptor)(\(|, ))/self.\5\1, /g' \ $(git grep -l generate ./test | grep -v 'test_framework/' | grep -v 'feature_rbf') -END VERIFY SCRIPT-
fa22469
to
fa0b916
Compare
Rebased (trivial, because scripted-diff) |
Concept ACK |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ACK fa0b916
$ test/lint/commit-script-check.sh f4e12fd..fa0b916
Running script for: fa0b916971e5bc23ad6396831940a2899ca05402
sed --regexp-extended -i \
's/((self\.)?(nodes\[[^]]+\]|[a-z_]*(wallet|node)[0-9a-z_]*))\.(generate(|toaddress|block|todescriptor)(\(|, ))/self., /g' \
$(git grep -l generate ./test | grep -v 'test_framework/' | grep -v 'feature_rbf')
OK
Maybe update the pull description to s/needed for/the first commit of/ #22567.
This is needed for #22567.
By using the newly added
generate*
member functions of the test framework, it paves the way to make it easier to implicitly callsync_all
after block generation to avoid intermittent issues.