Changeset View
Changeset View
Standalone View
Standalone View
test/functional/rpc_bind.py
Show First 20 Lines • Show All 65 Lines • ▼ Show 20 Lines | def run_allowip_test(self, allow_ips, rpchost, rpcport): | ||||
url = rpc_url(self.nodes[0].datadir, rpchost, rpcport) | url = rpc_url(self.nodes[0].datadir, rpchost, rpcport) | ||||
node = get_rpc_proxy(url, 0, coveragedir=self.options.coveragedir) | node = get_rpc_proxy(url, 0, coveragedir=self.options.coveragedir) | ||||
node.getnetworkinfo() | node.getnetworkinfo() | ||||
self.stop_nodes() | self.stop_nodes() | ||||
def run_test(self): | def run_test(self): | ||||
# due to OS-specific network stats queries, this test works only on Linux | # due to OS-specific network stats queries, this test works only on Linux | ||||
if not sys.platform.startswith('linux'): | if not sys.platform.startswith('linux'): | ||||
raise SkipTest("This test can only be run on linux.") | raise SkipTest("This test can only be run on Linux.") | ||||
# WSL in currently not supported (refer to | # WSL in currently not supported (refer to | ||||
# https://reviews.bitcoinabc.org/T400 for details). | # https://reviews.bitcoinabc.org/T400 for details). | ||||
# 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") | ||||
▲ Show 20 Lines • Show All 59 Lines • Show Last 20 Lines |