kopia lustrzana https://github.com/espressif/esp-idf
Merge branch 'ci/fix_otatool_example' into 'master'
ci: Fix otatool example failure in CI for ESP32-C2 Closes IDFCI-2057 See merge request espressif/esp-idf!29332pull/13309/head
commit
eac860a057
|
@ -1,4 +1,4 @@
|
||||||
# SPDX-FileCopyrightText: 2022 Espressif Systems (Shanghai) CO LTD
|
# SPDX-FileCopyrightText: 2022-2024 Espressif Systems (Shanghai) CO LTD
|
||||||
# SPDX-License-Identifier: Unlicense OR CC0-1.0
|
# SPDX-License-Identifier: Unlicense OR CC0-1.0
|
||||||
import os
|
import os
|
||||||
import subprocess
|
import subprocess
|
||||||
|
@ -8,15 +8,7 @@ import pytest
|
||||||
from pytest_embedded import Dut
|
from pytest_embedded import Dut
|
||||||
|
|
||||||
|
|
||||||
@pytest.mark.esp32
|
def _real_test_func(dut: Dut) -> None:
|
||||||
@pytest.mark.esp32s2
|
|
||||||
@pytest.mark.esp32c3
|
|
||||||
@pytest.mark.esp32s3
|
|
||||||
@pytest.mark.esp32c6
|
|
||||||
@pytest.mark.esp32c2
|
|
||||||
@pytest.mark.esp32p4
|
|
||||||
@pytest.mark.generic
|
|
||||||
def test_otatool_example(dut: Dut) -> None:
|
|
||||||
# Verify factory firmware
|
# Verify factory firmware
|
||||||
dut.expect('OTA Tool Example')
|
dut.expect('OTA Tool Example')
|
||||||
dut.expect('Example end')
|
dut.expect('Example end')
|
||||||
|
@ -32,3 +24,21 @@ def test_otatool_example(dut: Dut) -> None:
|
||||||
binary_path = flash_file[1]
|
binary_path = flash_file[1]
|
||||||
break
|
break
|
||||||
subprocess.check_call([sys.executable, script_path, '--binary', binary_path])
|
subprocess.check_call([sys.executable, script_path, '--binary', binary_path])
|
||||||
|
|
||||||
|
|
||||||
|
@pytest.mark.esp32
|
||||||
|
@pytest.mark.esp32s2
|
||||||
|
@pytest.mark.esp32c3
|
||||||
|
@pytest.mark.esp32s3
|
||||||
|
@pytest.mark.esp32c6
|
||||||
|
@pytest.mark.esp32p4
|
||||||
|
@pytest.mark.generic
|
||||||
|
def test_otatool_example(dut: Dut) -> None:
|
||||||
|
_real_test_func(dut)
|
||||||
|
|
||||||
|
|
||||||
|
@pytest.mark.esp32c2
|
||||||
|
@pytest.mark.generic
|
||||||
|
@pytest.mark.flash_4mb
|
||||||
|
def test_otatool_example_c2_4mb(dut: Dut) -> None:
|
||||||
|
_real_test_func(dut)
|
||||||
|
|
|
@ -102,6 +102,7 @@ ENV_MARKERS = {
|
||||||
'nvs_encr_hmac': 'Runner with test HMAC key programmed in efuse',
|
'nvs_encr_hmac': 'Runner with test HMAC key programmed in efuse',
|
||||||
'i2c_oled': 'Runner with ssd1306 I2C oled connected',
|
'i2c_oled': 'Runner with ssd1306 I2C oled connected',
|
||||||
'httpbin': 'runner for tests that need to access the httpbin service',
|
'httpbin': 'runner for tests that need to access the httpbin service',
|
||||||
|
'flash_4mb': 'C2 runners with 4 MB flash',
|
||||||
# multi-dut markers
|
# multi-dut markers
|
||||||
'multi_dut_modbus_rs485': 'a pair of runners connected by RS485 bus',
|
'multi_dut_modbus_rs485': 'a pair of runners connected by RS485 bus',
|
||||||
'ieee802154': 'ieee802154 related tests should run on ieee802154 runners.',
|
'ieee802154': 'ieee802154 related tests should run on ieee802154 runners.',
|
||||||
|
|
Ładowanie…
Reference in New Issue