Skip to content

Commit 79b4c27

Browse files
committed
Bugfix: QA: rpc_bind: Skip nonloopback test if no such address is found
1 parent 8a9ffec commit 79b4c27

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

test/functional/rpc_bind.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,10 @@ def run_test(self):
8484
if not self.options.run_nonloopback:
8585
self._run_loopback_tests()
8686
if not self.options.run_ipv4 and not self.options.run_ipv6:
87-
self._run_nonloopback_tests()
87+
if self.non_loopback_ip:
88+
self._run_nonloopback_tests()
89+
else:
90+
self.log.info('Non-loopback IP address not found, skipping non-loopback tests')
8891

8992
def _run_loopback_tests(self):
9093
if self.options.run_ipv4:

0 commit comments

Comments
 (0)