Skip to content

Commit f7eb7ec

Browse files
committed
test: framework: add skip_if_no_external_signer
1 parent 87a9794 commit f7eb7ec

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

test/functional/test_framework/test_framework.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -827,10 +827,19 @@ def has_previous_releases(self):
827827
self.options.previous_releases_path))
828828
return self.options.prev_releases
829829

830+
def skip_if_no_external_signer(self):
831+
"""Skip the running test if external signer support has not been compiled."""
832+
if not self.is_external_signer_compiled():
833+
raise SkipTest("external signer support has not been compiled.")
834+
830835
def is_cli_compiled(self):
831836
"""Checks whether bitcoin-cli was compiled."""
832837
return self.config["components"].getboolean("ENABLE_CLI")
833838

839+
def is_external_signer_compiled(self):
840+
"""Checks whether external signer support was compiled."""
841+
return self.config["components"].getboolean("ENABLE_EXTERNAL_SIGNER")
842+
834843
def is_wallet_compiled(self):
835844
"""Checks whether the wallet module was compiled."""
836845
return self.config["components"].getboolean("ENABLE_WALLET")

0 commit comments

Comments
 (0)