mirror of
https://github.com/dashpay/dash.git
synced 2024-12-25 20:12:57 +01:00
--tracerpc option for regression tests
Run tests with --tracerpc and all RPC calls will dump to the console. Very helpful for debugging.
This commit is contained in:
parent
c47b9c7ba7
commit
ec01243c14
@ -48,9 +48,15 @@ class BitcoinTestFramework(object):
|
|||||||
help="Source directory containing bitcoind/bitcoin-cli (default: %default%)")
|
help="Source directory containing bitcoind/bitcoin-cli (default: %default%)")
|
||||||
parser.add_option("--tmpdir", dest="tmpdir", default=tempfile.mkdtemp(prefix="test"),
|
parser.add_option("--tmpdir", dest="tmpdir", default=tempfile.mkdtemp(prefix="test"),
|
||||||
help="Root directory for datadirs")
|
help="Root directory for datadirs")
|
||||||
|
parser.add_option("--tracerpc", dest="trace_rpc", default=False, action="store_true",
|
||||||
|
help="Print out all RPC calls as they are made")
|
||||||
self.add_options(parser)
|
self.add_options(parser)
|
||||||
(self.options, self.args) = parser.parse_args()
|
(self.options, self.args) = parser.parse_args()
|
||||||
|
|
||||||
|
if self.options.trace_rpc:
|
||||||
|
import logging
|
||||||
|
logging.basicConfig(level=logging.DEBUG)
|
||||||
|
|
||||||
os.environ['PATH'] = self.options.srcdir+":"+os.environ['PATH']
|
os.environ['PATH'] = self.options.srcdir+":"+os.environ['PATH']
|
||||||
|
|
||||||
check_json_precision()
|
check_json_precision()
|
||||||
|
Loading…
Reference in New Issue
Block a user