Changeset View
Changeset View
Standalone View
Standalone View
test/functional/rpc_bind.py
Show First 20 Lines • Show All 107 Lines • ▼ Show 20 Lines | def run_test(self): | ||||
# This condition should be removed once netstat support is provided by | # This condition should be removed once netstat support is provided by | ||||
# Microsoft. | # Microsoft. | ||||
if "microsoft" in uname().version.lower(): | if "microsoft" in uname().version.lower(): | ||||
raise SkipTest( | raise SkipTest( | ||||
"Running this test on WSL is currently not supported") | "Running this test on WSL is currently not supported") | ||||
self.log.info("Check for ipv6") | self.log.info("Check for ipv6") | ||||
have_ipv6 = test_ipv6_local() | have_ipv6 = test_ipv6_local() | ||||
if not have_ipv6 and not self.options.run_ipv4: | if not have_ipv6 and not ( | ||||
self.options.run_ipv4 or self.options.run_nonloopback): | |||||
raise SkipTest("This test requires ipv6 support.") | raise SkipTest("This test requires ipv6 support.") | ||||
self.log.info("Check for non-loopback interface") | self.log.info("Check for non-loopback interface") | ||||
self.non_loopback_ip = None | self.non_loopback_ip = None | ||||
for name, ip in all_interfaces(): | for name, ip in all_interfaces(): | ||||
if ip != '127.0.0.1': | if ip != '127.0.0.1': | ||||
self.non_loopback_ip = ip | self.non_loopback_ip = ip | ||||
▲ Show 20 Lines • Show All 59 Lines • Show Last 20 Lines |