test: Add missing skip_if_no_bitcoin_tx

This commit is contained in:
MarcoFalke
2025-06-13 13:12:41 +02:00
parent fac9db6eb0
commit fa955154c7
3 changed files with 11 additions and 0 deletions

View File

@@ -1002,6 +1002,11 @@ class BitcoinTestFramework(metaclass=BitcoinTestMetaClass):
if not self.is_wallet_tool_compiled():
raise SkipTest("bitcoin-wallet has not been compiled")
def skip_if_no_bitcoin_tx(self):
"""Skip the running test if bitcoin-tx has not been compiled."""
if not self.is_bitcoin_tx_compiled():
raise SkipTest("bitcoin-tx has not been compiled")
def skip_if_no_bitcoin_util(self):
"""Skip the running test if bitcoin-util has not been compiled."""
if not self.is_bitcoin_util_compiled():
@@ -1056,6 +1061,10 @@ class BitcoinTestFramework(metaclass=BitcoinTestMetaClass):
"""Checks whether bitcoin-wallet was compiled."""
return self.config["components"].getboolean("ENABLE_WALLET_TOOL")
def is_bitcoin_tx_compiled(self):
"""Checks whether bitcoin-tx was compiled."""
return self.config["components"].getboolean("BUILD_BITCOIN_TX")
def is_bitcoin_util_compiled(self):
"""Checks whether bitcoin-util was compiled."""
return self.config["components"].getboolean("ENABLE_BITCOIN_UTIL")