mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-02-13 11:25:02 -05:00
test: prefer sqlite for wallet tests
This commit is contained in:
parent
8e0fabaabf
commit
17554efb60
1 changed files with 4 additions and 4 deletions
|
@ -214,11 +214,11 @@ class BitcoinTestFramework(metaclass=BitcoinTestMetaClass):
|
||||||
self.options.descriptors = None
|
self.options.descriptors = None
|
||||||
elif self.options.descriptors is None:
|
elif self.options.descriptors is None:
|
||||||
# Some wallet is either required or optionally used by the test.
|
# Some wallet is either required or optionally used by the test.
|
||||||
# Prefer BDB unless it isn't available
|
# Prefer SQLite unless it isn't available
|
||||||
if self.is_bdb_compiled():
|
if self.is_sqlite_compiled():
|
||||||
self.options.descriptors = False
|
|
||||||
elif self.is_sqlite_compiled():
|
|
||||||
self.options.descriptors = True
|
self.options.descriptors = True
|
||||||
|
elif self.is_bdb_compiled():
|
||||||
|
self.options.descriptors = False
|
||||||
else:
|
else:
|
||||||
# If neither are compiled, tests requiring a wallet will be skipped and the value of self.options.descriptors won't matter
|
# If neither are compiled, tests requiring a wallet will be skipped and the value of self.options.descriptors won't matter
|
||||||
# It still needs to exist and be None in order for tests to work however.
|
# It still needs to exist and be None in order for tests to work however.
|
||||||
|
|
Loading…
Add table
Reference in a new issue