6
6
import random
7
7
import shutil
8
8
9
- from tests .common .dualtor .dual_tor_common import active_active_ports # noqa F401
10
- from tests .common .dualtor .dual_tor_common import active_standby_ports # noqa F401
11
- from tests .common .dualtor .dual_tor_common import cable_type # noqa F401
9
+ from tests .common .dualtor .dual_tor_common import active_active_ports # noqa: F401
10
+ from tests .common .dualtor .dual_tor_common import active_standby_ports # noqa: F401
11
+ from tests .common .dualtor .dual_tor_common import cable_type # noqa: F401
12
12
from tests .common .dualtor .dual_tor_common import CableType
13
13
from tests .common .dualtor .dual_tor_io import DualTorIO
14
14
from tests .common .helpers .assertions import pytest_assert
@@ -161,7 +161,7 @@ def verify_and_report(tor_IO, verify, delay, allowed_disruption,
161
161
def run_test (
162
162
duthosts , activehost , ptfhost , ptfadapter , vmhost , action ,
163
163
tbinfo , tor_vlan_port , send_interval , traffic_direction ,
164
- stop_after , cable_type = CableType .active_standby , random_dst = None # noqa F811
164
+ stop_after , cable_type = CableType .active_standby , random_dst = None # noqa: F811
165
165
):
166
166
io_ready = threading .Event ()
167
167
@@ -245,7 +245,7 @@ def save_pcap(request, pytestconfig):
245
245
246
246
@pytest .fixture
247
247
def send_t1_to_server_with_action (duthosts , ptfhost , ptfadapter , tbinfo ,
248
- cable_type , vmhost , save_pcap ): # noqa F811
248
+ cable_type , vmhost , save_pcap ): # noqa: F811
249
249
"""
250
250
Starts IO test from T1 router to server.
251
251
As part of IO test the background thread sends and sniffs packets.
@@ -311,7 +311,7 @@ def t1_to_server_io_test(activehost, tor_vlan_port=None,
311
311
312
312
@pytest .fixture
313
313
def send_server_to_t1_with_action (duthosts , ptfhost , ptfadapter , tbinfo ,
314
- cable_type , vmhost , save_pcap ): # noqa F811
314
+ cable_type , vmhost , save_pcap ): # noqa: F811
315
315
"""
316
316
Starts IO test from server to T1 router.
317
317
As part of IO test the background thread sends and sniffs packets.
@@ -381,7 +381,7 @@ def server_to_t1_io_test(activehost, tor_vlan_port=None,
381
381
382
382
@pytest .fixture
383
383
def send_soc_to_t1_with_action (duthosts , ptfhost , ptfadapter , tbinfo ,
384
- cable_type , vmhost , save_pcap ): # noqa F811
384
+ cable_type , vmhost , save_pcap ): # noqa: F811
385
385
386
386
arp_setup (ptfhost )
387
387
@@ -410,7 +410,7 @@ def soc_to_t1_io_test(activehost, tor_vlan_port=None,
410
410
411
411
@pytest .fixture
412
412
def send_t1_to_soc_with_action (duthosts , ptfhost , ptfadapter , tbinfo ,
413
- cable_type , vmhost , save_pcap ): # noqa F811
413
+ cable_type , vmhost , save_pcap ): # noqa: F811
414
414
415
415
arp_setup (ptfhost )
416
416
@@ -440,10 +440,10 @@ def t1_to_soc_io_test(activehost, tor_vlan_port=None,
440
440
441
441
442
442
@pytest .fixture
443
- def select_test_mux_ports (active_active_ports , active_standby_ports ): # noqa F811
443
+ def select_test_mux_ports (active_active_ports , active_standby_ports ): # noqa: F811
444
444
"""Return helper function to select test mux ports based on cable_type"""
445
445
446
- def _select_test_mux_ports (cable_type , count ): # noqa F811
446
+ def _select_test_mux_ports (cable_type , count ): # noqa: F811
447
447
if cable_type == CableType .active_active :
448
448
test_mux_ports = random .sample (active_active_ports , count )
449
449
elif cable_type == CableType .active_standby :
@@ -457,7 +457,7 @@ def _select_test_mux_ports(cable_type, count):
457
457
458
458
@pytest .fixture
459
459
def send_server_to_server_with_action (duthosts , ptfhost , ptfadapter , tbinfo ,
460
- cable_type , vmhost , save_pcap ): # noqa F811
460
+ cable_type , vmhost , save_pcap ): # noqa: F811
461
461
462
462
arp_setup (ptfhost )
463
463
0 commit comments