Skip to content

Commit

Permalink
change command to set mtu (#2313)
Browse files Browse the repository at this point in the history
  • Loading branch information
etaques authored Apr 21, 2023
1 parent b28f872 commit d0415d4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions python-test/features/steps/mocked_interface.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ def set_mock_interface(context, mtu, ip):
context.mock_iface_name = f"dummyqa{random_string(8)}"
return_0 = send_terminal_commands(f"ip link add {context.mock_iface_name} type dummy")
return_1 = send_terminal_commands(f"ip link set {context.mock_iface_name} up")
return_2 = send_terminal_commands(f"ifconfig {context.mock_iface_name} mtu {mtu}")
return_2 = send_terminal_commands(f"ip link set dev {context.mock_iface_name} mtu {mtu}")
if "Operation not permitted" in return_0[1]:
context.access_denied = True
context.scenario.skip('Root privileges are required')
Expand Down Expand Up @@ -121,7 +121,7 @@ def remove_all_virtual_switches():


def remove_all_dummys():
command_1 = "ifconfig"
command_1 = "/sbin/ifconfig"
dummys = send_terminal_commands(command_1)
dummys = dummys[0].split("\n")
dummys_test = [item for item in dummys if 'dummy' in item]
Expand Down

0 comments on commit d0415d4

Please sign in to comment.