_____________________________________________________________________________________________ test_usb0_down _____________________________________________________________________________________________
usb0_data = NetworkInterface(ifname='usb0', operstate='UP', mac='0e:bf:4d:9b:c3:65', mtu=1500, duplex=None, speed=None, ipv4_addr='169.254.42.1', ipv4_prefix=16)
def test_usb0_down(usb0_data):
"""
Test command:
ip address
Results:
True - usb0 state is "DOWN"
False - any other output
"""
> assert usb0_data.operstate == "DOWN"
E AssertionError: assert 'UP' == 'DOWN'
E - DOWN
E + UP
/opt/wlanpi-hwtest/lib/python3.9/site-packages/hwtest/automated/ethernet_test.py:92: AssertionError
wlanpi@wlanpi:~ $ ip link show usb0
3: usb0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP mode DEFAULT group default qlen 1000
link/ether 0e:bf:4d:9b:c3:65 brd ff:ff:ff:ff:ff:ff
Slack conversation indicates that we should review the USB tests and potentially pull any tests for the usb0 interface. We're primarily concerned about the hardware state. @crvallance