test: Add test for file system permissions

This commit is contained in:
Hennadii Stepanov
2023-02-06 11:08:57 +00:00
parent 581f16ef34
commit c9ba4f9ecb
3 changed files with 49 additions and 0 deletions

View File

@@ -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():