Currently the test performs the wallet-relevant parts if
_any_ wallet type support is compiled in, independently of
whether the test is run with legacy or descriptor wallet
specified. This leads to a failure if the test is started
with the `--legacy-wallet` parameter, but bitcoind is
compiled without BDB support.
Fix this by checking if the specified wallet type (BDB for
legacy wallet, SQLite for descriptor wallet) is available.
@ -113,7 +119,7 @@ class TestBitcoinCli(BitcoinTestFramework):
assert_raises_process_error(1,"Invalid value for -color option. Valid values: always, auto, never.",self.nodes[0].cli('-getinfo','-color=foo').send_cli)
assert_raises_process_error(1,"Invalid value for -color option. Valid values: always, auto, never.",self.nodes[0].cli('-getinfo','-color=foo').send_cli)
self.log.info("Test -getinfo returns expected network and blockchain info")
self.log.info("Test -getinfo returns expected network and blockchain info")