mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-02-08 10:31:50 -05:00
test: framework: add skip_if_no_external_signer
This commit is contained in:
parent
87a97941f6
commit
f7eb7ecc67
1 changed files with 9 additions and 0 deletions
|
@ -827,10 +827,19 @@ class BitcoinTestFramework(metaclass=BitcoinTestMetaClass):
|
|||
self.options.previous_releases_path))
|
||||
return self.options.prev_releases
|
||||
|
||||
def skip_if_no_external_signer(self):
|
||||
"""Skip the running test if external signer support has not been compiled."""
|
||||
if not self.is_external_signer_compiled():
|
||||
raise SkipTest("external signer support has not been compiled.")
|
||||
|
||||
def is_cli_compiled(self):
|
||||
"""Checks whether bitcoin-cli was compiled."""
|
||||
return self.config["components"].getboolean("ENABLE_CLI")
|
||||
|
||||
def is_external_signer_compiled(self):
|
||||
"""Checks whether external signer support was compiled."""
|
||||
return self.config["components"].getboolean("ENABLE_EXTERNAL_SIGNER")
|
||||
|
||||
def is_wallet_compiled(self):
|
||||
"""Checks whether the wallet module was compiled."""
|
||||
return self.config["components"].getboolean("ENABLE_WALLET")
|
||||
|
|
Loading…
Add table
Reference in a new issue