pytest: allow more elaborate bitcoin-cli override.

In particular, this lets us intercept individual commands, such as
estimatesmartfee.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
Rusty Russell
2018-08-22 09:42:57 +09:30
committed by Christian Decker
parent 3d8836c1e5
commit 5e20eedb41
3 changed files with 21 additions and 9 deletions

View File

@@ -88,7 +88,7 @@ def test_bitcoin_failure(node_factory, bitcoind):
# Make sure we're not failing it between getblockhash and getblock.
sync_blockheight(bitcoind, [l1])
l1.fake_bitcoind_fail(1)
l1.fake_bitcoind_fail('exit 1')
# This should cause both estimatefee and getblockhash fail
l1.daemon.wait_for_logs(['estimatesmartfee .* exited with status 1',