fix(ci): Temporarily disable USB device tests on S3

Partially reverts 1302fd70ba
This commit is contained in:
Tomas Rezucha
2024-04-17 11:43:10 +02:00
parent d8ddc102f6
commit 6b10a3074a
8 changed files with 10 additions and 9 deletions

View File

@@ -444,7 +444,7 @@ examples/peripherals/usb/device:
disable: disable:
- if: SOC_USB_OTG_SUPPORTED != 1 - if: SOC_USB_OTG_SUPPORTED != 1
disable_test: disable_test:
- if: IDF_TARGET not in ["esp32s2", "esp32s3"] - if: IDF_TARGET not in ["esp32s2"]
temporary: true temporary: true
reason: lack of runners with usb_device tag reason: lack of runners with usb_device tag
depends_components: depends_components:
@@ -457,7 +457,7 @@ examples/peripherals/usb/device/tusb_ncm:
disable: disable:
- if: SOC_USB_OTG_SUPPORTED != 1 or SOC_WIFI_SUPPORTED != 1 - if: SOC_USB_OTG_SUPPORTED != 1 or SOC_WIFI_SUPPORTED != 1
disable_test: disable_test:
- if: IDF_TARGET not in ["esp32s2", "esp32s3"] - if: IDF_TARGET not in ["esp32s2"]
temporary: true temporary: true
reason: lack of runners with usb_device tag reason: lack of runners with usb_device tag
depends_components: depends_components:

View File

@@ -11,7 +11,7 @@ from serial.tools.list_ports import comports
@pytest.mark.esp32s2 @pytest.mark.esp32s2
@pytest.mark.esp32s3 @pytest.mark.esp32s3
@pytest.mark.esp32p4 @pytest.mark.esp32p4
@pytest.mark.temp_skip_ci(targets=['esp32p4'], reason='lack of runners with usb_device tag') @pytest.mark.temp_skip_ci(targets=['esp32s3', 'esp32p4'], reason='lack of runners with usb_device tag')
@pytest.mark.usb_device @pytest.mark.usb_device
def test_usb_composite_device_serial_example(dut: Dut) -> None: def test_usb_composite_device_serial_example(dut: Dut) -> None:
dut.expect_exact('Hello World!') dut.expect_exact('Hello World!')

View File

@@ -11,7 +11,7 @@ from serial.tools.list_ports import comports
@pytest.mark.esp32s2 @pytest.mark.esp32s2
@pytest.mark.esp32s3 @pytest.mark.esp32s3
@pytest.mark.esp32p4 @pytest.mark.esp32p4
@pytest.mark.temp_skip_ci(targets=['esp32p4'], reason='lack of runners with usb_device tag') @pytest.mark.temp_skip_ci(targets=['esp32s3', 'esp32p4'], reason='lack of runners with usb_device tag')
@pytest.mark.usb_device @pytest.mark.usb_device
def test_usb_device_console_example(dut: Dut) -> None: def test_usb_device_console_example(dut: Dut) -> None:
dut.expect_exact('USB initialization DONE') dut.expect_exact('USB initialization DONE')

View File

@@ -7,7 +7,7 @@ from pytest_embedded import Dut
@pytest.mark.esp32s2 @pytest.mark.esp32s2
@pytest.mark.esp32s3 @pytest.mark.esp32s3
@pytest.mark.esp32p4 @pytest.mark.esp32p4
@pytest.mark.temp_skip_ci(targets=['esp32p4'], reason='lack of runners with usb_device tag') @pytest.mark.temp_skip_ci(targets=['esp32s3', 'esp32p4'], reason='lack of runners with usb_device tag')
@pytest.mark.usb_device @pytest.mark.usb_device
def test_usb_device_hid_example(dut: Dut) -> None: def test_usb_device_hid_example(dut: Dut) -> None:
dut.expect_exact('USB initialization DONE') dut.expect_exact('USB initialization DONE')

View File

@@ -7,7 +7,7 @@ from pytest_embedded import Dut
@pytest.mark.esp32s2 @pytest.mark.esp32s2
@pytest.mark.esp32s3 @pytest.mark.esp32s3
@pytest.mark.esp32p4 @pytest.mark.esp32p4
@pytest.mark.temp_skip_ci(targets=['esp32p4'], reason='lack of runners with usb_device tag') @pytest.mark.temp_skip_ci(targets=['esp32s3', 'esp32p4'], reason='lack of runners with usb_device tag')
@pytest.mark.usb_device @pytest.mark.usb_device
def test_usb_device_midi_example(dut: Dut) -> None: def test_usb_device_midi_example(dut: Dut) -> None:
dut.expect_exact('USB initialization DONE') dut.expect_exact('USB initialization DONE')

View File

@@ -7,7 +7,7 @@ from pytest_embedded import Dut
@pytest.mark.esp32s2 @pytest.mark.esp32s2
@pytest.mark.esp32s3 @pytest.mark.esp32s3
@pytest.mark.esp32p4 @pytest.mark.esp32p4
@pytest.mark.temp_skip_ci(targets=['esp32p4'], reason='lack of runners with usb_device tag') @pytest.mark.temp_skip_ci(targets=['esp32s3', 'esp32p4'], reason='lack of runners with usb_device tag')
@pytest.mark.usb_device @pytest.mark.usb_device
def test_usb_device_msc_example(dut: Dut) -> None: def test_usb_device_msc_example(dut: Dut) -> None:
dut.expect('Mount storage') dut.expect('Mount storage')

View File

@@ -9,13 +9,14 @@ from pytest_embedded import Dut
@pytest.mark.esp32s2 @pytest.mark.esp32s2
@pytest.mark.esp32s3 @pytest.mark.esp32s3
@pytest.mark.temp_skip_ci(targets=['esp32s3'], reason='lack of runners with usb_device tag')
@pytest.mark.usb_device @pytest.mark.usb_device
def test_usb_device_ncm_example(dut: Dut) -> None: def test_usb_device_ncm_example(dut: Dut) -> None:
netif_mac = dut.expect(r'Network interface HW address: ([0-9A-Fa-f]{2}:[0-9A-Fa-f]{2}:[0-9A-Fa-f]{2}:[0-9A-Fa-f]{2}:[0-9A-Fa-f]{2}:[0-9A-Fa-f]{2})') netif_mac = dut.expect(r'Network interface HW address: ([0-9A-Fa-f]{2}:[0-9A-Fa-f]{2}:[0-9A-Fa-f]{2}:[0-9A-Fa-f]{2}:[0-9A-Fa-f]{2}:[0-9A-Fa-f]{2})')
netif_mac = netif_mac.group(1).decode('utf-8') netif_mac = netif_mac.group(1).decode('utf-8')
dut.expect_exact('USB NCM and WiFi initialized and started') dut.expect_exact('USB NCM and WiFi initialized and started')
dut.expect_exact('Returned from app_main()') dut.expect_exact('Returned from app_main()')
time.sleep(5) # Wait 5s for the network interface to appear time.sleep(1) # Wait 1s for the network interface to appear
out_bytes = subprocess.check_output('ifconfig', shell=True, timeout=5) out_bytes = subprocess.check_output('ifconfig', shell=True, timeout=5)
out_str = out_bytes.decode('utf-8') out_str = out_bytes.decode('utf-8')
print('expected network interface HW address: ', netif_mac) print('expected network interface HW address: ', netif_mac)

View File

@@ -11,7 +11,7 @@ from serial.tools.list_ports import comports
@pytest.mark.esp32s2 @pytest.mark.esp32s2
@pytest.mark.esp32s3 @pytest.mark.esp32s3
@pytest.mark.esp32p4 @pytest.mark.esp32p4
@pytest.mark.temp_skip_ci(targets=['esp32p4'], reason='lack of runners with usb_device tag') @pytest.mark.temp_skip_ci(targets=['esp32s3', 'esp32p4'], reason='lack of runners with usb_device tag')
@pytest.mark.usb_device @pytest.mark.usb_device
def test_usb_device_serial_example(dut: Dut) -> None: def test_usb_device_serial_example(dut: Dut) -> None:
dut.expect_exact('USB initialization DONE') dut.expect_exact('USB initialization DONE')