aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorJon Atack <jon@atack.com>2020-07-07 11:56:54 +0200
committerJon Atack <jon@atack.com>2020-07-09 17:27:22 +0200
commit8d32d2011d3f4e1d9e587d6f80dfa4a3e9f9393d (patch)
tree04362cc6761789ccf67b99dcd74240aa35101faf /test
parentf4301e9107924c101d7738de4123b8a5c888bad5 (diff)
test: consider generate covered in _get_uncovered_rpc_commands()
Diffstat (limited to 'test')
-rwxr-xr-xtest/functional/test_runner.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/test/functional/test_runner.py b/test/functional/test_runner.py
index 2fa48006f4..86e9ab3fe2 100755
--- a/test/functional/test_runner.py
+++ b/test/functional/test_runner.py
@@ -708,14 +708,16 @@ class RPCCoverage():
Return a set of currently untested RPC commands.
"""
- # This is shared from `test/functional/test-framework/coverage.py`
+ # This is shared from `test/functional/test_framework/coverage.py`
reference_filename = 'rpc_interface.txt'
coverage_file_prefix = 'coverage.'
coverage_ref_filename = os.path.join(self.dir, reference_filename)
coverage_filenames = set()
all_cmds = set()
- covered_cmds = set()
+ # Consider RPC generate covered, because it is overloaded in
+ # test_framework/test_node.py and not seen by the coverage check.
+ covered_cmds = set({'generate'})
if not os.path.isfile(coverage_ref_filename):
raise RuntimeError("No coverage reference found")