mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-09-12 05:32:22 +02:00
qa: Add skip_if_no_lsof_on_nonlinux helper and use it where needed
Some functional tests on non-Linux platforms rely on the `lsof` utility. However, we treat all other functional test dependencies, such as additional Python modules, as optional, and skip dependent tests if those are unavailable. This change makes `lsof` optional as well.
This commit is contained in:
@@ -33,6 +33,7 @@ class BindExtraTest(BitcoinTestFramework):
|
||||
|
||||
def skip_test_if_missing_module(self):
|
||||
self.skip_if_platform_not_posix()
|
||||
self.skip_if_no_lsof_on_nonlinux()
|
||||
|
||||
def setup_network(self):
|
||||
loopback_ipv4 = addr_to_hex("127.0.0.1")
|
||||
|
||||
Reference in New Issue
Block a user