mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-04-04 12:55:02 +02:00
Merge bitcoin/bitcoin#26638: test: prefer sqlite for wallet tests
17554efb60test: prefer sqlite for wallet tests (S3RK)8e0fabaabftest: make wallet_migration.py pass with both wallet flags (S3RK) Pull request description: Fixes #26511 ACKs for top commit: MarcoFalke: review ACK17554efb60achow101: ACK17554efb60Tree-SHA512: 97cae275998f07032feffe1b533d4747b8ff03c3c1fb830af69ee38cadb75fd58532956f66f79c0d275b00620ce53b0b5240f885e4f29b8bd4d0b6e6cbc683fa
This commit is contained in:
@@ -214,11 +214,11 @@ class BitcoinTestFramework(metaclass=BitcoinTestMetaClass):
|
||||
self.options.descriptors = None
|
||||
elif self.options.descriptors is None:
|
||||
# Some wallet is either required or optionally used by the test.
|
||||
# Prefer BDB unless it isn't available
|
||||
if self.is_bdb_compiled():
|
||||
self.options.descriptors = False
|
||||
elif self.is_sqlite_compiled():
|
||||
# Prefer SQLite unless it isn't available
|
||||
if self.is_sqlite_compiled():
|
||||
self.options.descriptors = True
|
||||
elif self.is_bdb_compiled():
|
||||
self.options.descriptors = False
|
||||
else:
|
||||
# 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.
|
||||
|
||||
Reference in New Issue
Block a user