diff options
author | Andrew Chow <achow101-github@achow101.com> | 2020-10-29 15:19:45 -0400 |
---|---|---|
committer | Andrew Chow <achow101-github@achow101.com> | 2021-01-27 12:52:46 -0500 |
commit | 1f20cac9d41e507901a2811d6db7147d7ab0321b (patch) | |
tree | fc88aa91a293fe94099c15a78daa726a09ffe279 /test/functional | |
parent | 3641597d7ef6f5097a9e93cab3ef7e0f9c820296 (diff) |
Disable wallet_descriptor.py bdb format check if BDB is not compiled
Diffstat (limited to 'test/functional')
-rwxr-xr-x | test/functional/wallet_descriptor.py | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/test/functional/wallet_descriptor.py b/test/functional/wallet_descriptor.py index 1de41a5f96..c04a15a67c 100755 --- a/test/functional/wallet_descriptor.py +++ b/test/functional/wallet_descriptor.py @@ -23,11 +23,14 @@ class WalletDescriptorTest(BitcoinTestFramework): self.skip_if_no_sqlite() def run_test(self): - # Make a legacy wallet and check it is BDB - self.nodes[0].createwallet(wallet_name="legacy1", descriptors=False) - wallet_info = self.nodes[0].getwalletinfo() - assert_equal(wallet_info['format'], 'bdb') - self.nodes[0].unloadwallet("legacy1") + if self.is_bdb_compiled(): + # Make a legacy wallet and check it is BDB + self.nodes[0].createwallet(wallet_name="legacy1", descriptors=False) + wallet_info = self.nodes[0].getwalletinfo() + assert_equal(wallet_info['format'], 'bdb') + self.nodes[0].unloadwallet("legacy1") + else: + self.log.warning("Skipping BDB test") # Make a descriptor wallet self.log.info("Making a descriptor wallet") |