aboutsummaryrefslogtreecommitdiff
path: root/test/functional/test_framework/test_framework.py
diff options
context:
space:
mode:
authorHennadii Stepanov <32963518+hebasto@users.noreply.github.com>2023-02-06 11:08:57 +0000
committerHennadii Stepanov <32963518+hebasto@users.noreply.github.com>2023-02-06 11:08:57 +0000
commitc9ba4f9ecb1a282d98e7456a84ca84362b161757 (patch)
tree581c682718b979d0a0c36bab049453d16241d8f0 /test/functional/test_framework/test_framework.py
parent581f16ef3404274cb5c1a79dd3d6ee7b584f9844 (diff)
downloadbitcoin-c9ba4f9ecb1a282d98e7456a84ca84362b161757.tar.xz
test: Add test for file system permissions
Diffstat (limited to 'test/functional/test_framework/test_framework.py')
-rwxr-xr-xtest/functional/test_framework/test_framework.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/functional/test_framework/test_framework.py b/test/functional/test_framework/test_framework.py
index 6ff4e4ee54..513b795478 100755
--- a/test/functional/test_framework/test_framework.py
+++ b/test/functional/test_framework/test_framework.py
@@ -880,6 +880,11 @@ class BitcoinTestFramework(metaclass=BitcoinTestMetaClass):
if platform.system() != "Linux":
raise SkipTest("not on a Linux system")
+ def skip_if_platform_not_posix(self):
+ """Skip the running test if we are not on a POSIX platform"""
+ if os.name != 'posix':
+ raise SkipTest("not on a POSIX system")
+
def skip_if_no_bitcoind_zmq(self):
"""Skip the running test if bitcoind has not been compiled with zmq support."""
if not self.is_zmq_compiled():