Skip to content

Commit

Permalink
iface_bridge:Fix colored output if ip command
Browse files Browse the repository at this point in the history
Signed-off-by: Haijiao Zhao <[email protected]>
  • Loading branch information
chloerh committed Jan 17, 2025
1 parent ab91364 commit 0f389e3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libvirt/tests/src/virtual_network/iface_bridge.py
Original file line number Diff line number Diff line change
Expand Up @@ -291,7 +291,7 @@ def check_net_functions(guest_ip, ping_count, ping_timeout, guest_session, host_
driver_dict = eval(iface_driver)
if session1 is None:
session1 = vm1.wait_for_serial_login()
guest_iface_info = session1.cmd_output("ip l").strip()
guest_iface_info = session1.cmd_output("ip --color=never l").strip()
guest_iface_name = re.findall(r"^\d+: (\S+?)[@:].*state UP.*$", guest_iface_info, re.MULTILINE)[0]
comb_size = driver_dict.get('queues')
rx_size = driver_dict.get('rx_queue_size')
Expand Down

0 comments on commit 0f389e3

Please sign in to comment.