mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-02-10 10:52:31 -05:00
qa: check-rpc-mapping must not run on empty lists
This commit is contained in:
parent
e542728cde
commit
fae2673d5d
1 changed files with 2 additions and 2 deletions
|
@ -63,7 +63,7 @@ def process_commands(fname):
|
||||||
else:
|
else:
|
||||||
args = []
|
args = []
|
||||||
cmds.append(RPCCommand(name, args))
|
cmds.append(RPCCommand(name, args))
|
||||||
assert not in_rpcs, "Something went wrong with parsing the C++ file: update the regexps"
|
assert not in_rpcs and cmds, "Something went wrong with parsing the C++ file: update the regexps"
|
||||||
return cmds
|
return cmds
|
||||||
|
|
||||||
def process_mapping(fname):
|
def process_mapping(fname):
|
||||||
|
@ -86,7 +86,7 @@ def process_mapping(fname):
|
||||||
idx = int(m.group(2))
|
idx = int(m.group(2))
|
||||||
argname = parse_string(m.group(3))
|
argname = parse_string(m.group(3))
|
||||||
cmds.append((name, idx, argname))
|
cmds.append((name, idx, argname))
|
||||||
assert not in_rpcs
|
assert not in_rpcs and cmds
|
||||||
return cmds
|
return cmds
|
||||||
|
|
||||||
def main():
|
def main():
|
||||||
|
|
Loading…
Add table
Reference in a new issue