Skip to content

Commit

Permalink
Merge pull request avocado-framework#4041 from cliping/check_established
Browse files Browse the repository at this point in the history
Update matching pattern for ipv6 addr
  • Loading branch information
Yingshun authored Jan 9, 2025
2 parents 25a214d + 06709d4 commit a9b09f4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions virttest/utils_libvirt/libvirt_network.py
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ def _check_socket():
cmdRes = remote.run_remote_cmd(cmd, params)

if expected_network_conn_num:
pat_str = r".*%s:%s.*ESTABLISHED.*%s.*" % (
pat_str = r".*%s.*%s.*ESTABLISHED.*%s.*" % (
server_ip,
port_to_check,
service_to_check,
Expand All @@ -144,7 +144,7 @@ def _check_socket():
return None

if port_to_check != "4915":
pat_str = r".*%s:%s.*ESTABLISHED.*%s.*" % (
pat_str = r".*%s.*%s.*ESTABLISHED.*%s.*" % (
server_ip,
port_to_check,
service_to_check,
Expand Down

0 comments on commit a9b09f4

Please sign in to comment.