aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorSjors Provoost <sjors@sprovoost.nl>2019-02-13 18:59:16 +0100
committerSjors Provoost <sjors@sprovoost.nl>2021-02-21 16:27:10 +0100
commitf7eb7ecc6750ab267a979d9268ce5b5d151c26de (patch)
tree143c8cc3a12ec467d79e028b867ec6feeea4b686 /test
parent87a97941f667483bbf2ab00929e03a2199cb8a62 (diff)
test: framework: add skip_if_no_external_signer
Diffstat (limited to 'test')
-rwxr-xr-xtest/functional/test_framework/test_framework.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/test/functional/test_framework/test_framework.py b/test/functional/test_framework/test_framework.py
index 70a9798449..f7eaaa548f 100755
--- a/test/functional/test_framework/test_framework.py
+++ b/test/functional/test_framework/test_framework.py
@@ -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")