diff options
author | Hennadii Stepanov <32963518+hebasto@users.noreply.github.com> | 2023-02-06 11:08:57 +0000 |
---|---|---|
committer | Hennadii Stepanov <32963518+hebasto@users.noreply.github.com> | 2023-02-06 11:08:57 +0000 |
commit | c9ba4f9ecb1a282d98e7456a84ca84362b161757 (patch) | |
tree | 581c682718b979d0a0c36bab049453d16241d8f0 /test/functional/test_framework/test_framework.py | |
parent | 581f16ef3404274cb5c1a79dd3d6ee7b584f9844 (diff) | |
download | bitcoin-c9ba4f9ecb1a282d98e7456a84ca84362b161757.tar.xz |
test: Add test for file system permissions
Diffstat (limited to 'test/functional/test_framework/test_framework.py')
-rwxr-xr-x | test/functional/test_framework/test_framework.py | 5 |
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(): |