diff --git a/unit-tests/py/rspy/devices.py b/unit-tests/py/rspy/devices.py index fc3121592d4..9ce2e4bac60 100644 --- a/unit-tests/py/rspy/devices.py +++ b/unit-tests/py/rspy/devices.py @@ -726,6 +726,10 @@ def get_phys_port(dev): ports = [int(port) for port in str_ports if port.isnumeric() and int(port) in all_ports] if len(ports) != len(str_ports): log.f( 'Invalid ports', str_ports ) + # With --port, leave other ports alone + # With --PORT, disable other ports + # This would otherwise require --none, wait, --port) + # Note that it does not recycle the port if it was already enabled hub.enable_ports( ports, disable_other_ports=(opt == '--PORT') ) action = 'none' elif opt in ('--ports'):