Page MenuHomePhabricator

Refactor TestNode arguments management
ClosedPublic

Authored by Fabien on Feb 10 2019, 11:15.

Details

Summary

Refactor only, no functional change:

  • rename self.args to self.default_args
  • separate the binary name from the arguments list
  • add facilities to clear/add/remove default arguments
  • update test_framework and feature_config_args to use these facilities
Test Plan
./test/functional/test_runner.py

Diff Detail

Repository
rABC Bitcoin ABC
Branch
refactor_test_node_args
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 4950
Build 7963: Bitcoin ABC Buildbot (legacy)
Build 7962: arc lint + arc unit

Event Timeline

jasonbcox added inline comments.
test/functional/test_framework/test_framework.py
427

I know you're making sure this is complete, but isn't this strictly unnecessary since the node was just init'd?

test/functional/test_framework/test_node.py
70

Just a note for the future: Small one-liners like this should be put in their own diff. The hint is that the summary contains a list of semi-but-not-quite-related items.

test/functional/test_framework/test_framework.py
427

Talked offline. This is needed due to the hardcoded args.

This revision is now accepted and ready to land.Feb 11 2019, 18:48
This revision was automatically updated to reflect the committed changes.