HomePhabricator

Improve TestNodeCLI output parsing

Description

Improve TestNodeCLI output parsing

Summary:
Parse JSONRPCException errors, and avoid JSON decode exception if RPC
method returns a plain string.

Partial backport of core PR11970 (commit fcfb952)

Depends on D2395

Test Plan:

./test/functional/test_runner.py interface_bitcoin_cli

Reviewers: #bitcoin_abc, deadalnix

Reviewed By: #bitcoin_abc, deadalnix

Subscribers: teamcity, schancel

Differential Revision: https://reviews.bitcoinabc.org/D2396

Details

Provenance
Russell Yanofsky <russ@yanofsky.org>Authored on Dec 20 2017, 23:38
FabienCommitted on Jan 24 2019, 17:09
FabienPushed on Jan 24 2019, 17:09
Reviewer
Restricted Project
Differential Revision
D2396: Improve TestNodeCLI output parsing
Parents
rABC7a1e39e8364c: Connect to peers with NODE_NETWORK_LIMITED flag
Branches
Unknown
Tags
Unknown

Event Timeline