From e801e951df0c2db1ac40f8f384ebfe125058925f Mon Sep 17 00:00:00 2001 From: Andrew Poelstra Date: Wed, 16 Dec 2020 16:17:09 +0000 Subject: [PATCH] ci: whitelist some RPCs on the functional test coverage check --- test/functional/test_runner.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/test/functional/test_runner.py b/test/functional/test_runner.py index 7145bbe098..4c5d245636 100755 --- a/test/functional/test_runner.py +++ b/test/functional/test_runner.py @@ -786,7 +786,9 @@ def _get_uncovered_rpc_commands(self): all_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'}) + # ELEMENTS: also consider `getdifficulty` and `getnetworkhashps` covered, which should be removed as they are meaningless on a signed-block chain + # ELEMENTS: also consider `pruneblockchain` covered since its test is temporarily disabled + covered_cmds = set({'generate', 'getdifficulty', 'getnetworkhashps', 'pruneblockchain'}) if not os.path.isfile(coverage_ref_filename): raise RuntimeError("No coverage reference found")