ci: rename eco tags to revision

This commit is contained in:
Fu Hanxi
2026-03-26 12:24:59 +01:00
parent 7b1d576416
commit 4f92cfd077
60 changed files with 130 additions and 127 deletions
@@ -35,8 +35,8 @@ def test_adc_esp32c2_xtal_26mhz(dut: Dut) -> None:
# TODO: IDF-15005
# P4 REV2 adc
# @pytest.mark.adc
# @pytest.mark.esp32p4_eco4
# @pytest.mark.parametrize('config', ['esp32p4_eco4'], indirect=True)
# @pytest.mark.esp32p4_rev1
# @pytest.mark.parametrize('config', ['esp32p4_rev1'], indirect=True)
# @idf_parametrize(
# 'target',
# ['esp32p4'],
@@ -27,30 +27,30 @@ def test_external_coex_unit_test_esp32c2_xtal26m(dut: Dut) -> None:
dut.run_all_single_board_cases()
@pytest.mark.esp32c2eco4
@pytest.mark.esp32c2_rev2
@pytest.mark.xtal_26mhz
@pytest.mark.generic
@pytest.mark.parametrize(
'config, baud',
[
('esp32c2eco4_xtal26m', '74880'),
('esp32c2_rev2_xtal26m', '74880'),
],
indirect=True,
)
@idf_parametrize('target', ['esp32c2'], indirect=['target'])
def test_external_coex_unit_test_esp32c2eco4_xtal26m(dut: Dut) -> None:
def test_external_coex_unit_test_esp32c2_rev2_xtal26m(dut: Dut) -> None:
dut.run_all_single_board_cases()
@pytest.mark.esp32c3eco7
@pytest.mark.esp32c3_rev1
@pytest.mark.generic
@pytest.mark.parametrize(
'config',
[
'esp32c3eco7',
'esp32c3_rev1',
],
indirect=True,
)
@idf_parametrize('target', ['esp32c3'], indirect=['target'])
def test_external_coex_unit_test_esp32c3eco7(dut: Dut) -> None:
def test_external_coex_unit_test_esp32c3_rev1(dut: Dut) -> None:
dut.run_all_single_board_cases()
@@ -22,7 +22,7 @@ def test_gptimer(dut: Dut) -> None:
@pytest.mark.generic
@pytest.mark.esp32c5_eco3
@pytest.mark.esp32c5_rev1
@pytest.mark.parametrize(
'config',
[
@@ -31,7 +31,7 @@ def test_gptimer(dut: Dut) -> None:
indirect=True,
)
@idf_parametrize('target', ['esp32c5'], indirect=['target'])
def test_gptimer_esp32c5_eco3(dut: Dut) -> None:
def test_gptimer_esp32c5_rev1(dut: Dut) -> None:
dut.run_all_single_board_cases()
@@ -41,7 +41,7 @@ def test_i2s_esp32c5(dut: Dut) -> None:
@pytest.mark.generic
@pytest.mark.esp32c5_eco3
@pytest.mark.esp32c5_rev1
@pytest.mark.parametrize(
'config',
[
@@ -54,7 +54,7 @@ def test_i2s_esp32c5(dut: Dut) -> None:
['esp32c5'],
indirect=['target'],
)
def test_i2s_esp32c5_eco3(dut: Dut) -> None:
def test_i2s_esp32c5_rev1(dut: Dut) -> None:
dut.run_all_single_board_cases()
@@ -22,11 +22,11 @@ def test_isp(dut: Dut) -> None:
# TODO: IDF-15006
# @pytest.mark.generic
# @pytest.mark.esp32p4_eco4
# @pytest.mark.esp32p4_rev1
# @pytest.mark.parametrize(
# 'config',
# [
# ('esp32p4_eco4'),
# ('esp32p4_rev1'),
# ],
# indirect=True,
# )
@@ -37,7 +37,7 @@ def test_ledc_esp32c5(dut: IdfDut) -> None:
@pytest.mark.generic
@pytest.mark.esp32c5_eco3
@pytest.mark.esp32c5_rev1
@pytest.mark.parametrize(
'config',
[
@@ -46,7 +46,7 @@ def test_ledc_esp32c5(dut: IdfDut) -> None:
indirect=True,
)
@idf_parametrize('target', ['esp32c5'], indirect=['target'])
def test_ledc_esp32c5_eco3(dut: IdfDut) -> None:
def test_ledc_esp32c5_rev1(dut: IdfDut) -> None:
dut.run_all_single_board_cases(reset=True)
@@ -33,7 +33,7 @@ def test_mcpwm_esp32c5(dut: Dut) -> None:
@pytest.mark.generic
@pytest.mark.esp32c5_eco3
@pytest.mark.esp32c5_rev1
@pytest.mark.parametrize(
'config',
[
@@ -42,5 +42,5 @@ def test_mcpwm_esp32c5(dut: Dut) -> None:
indirect=True,
)
@idf_parametrize('target', ['esp32c5'], indirect=['target'])
def test_mcpwm_esp32c5_eco3(dut: Dut) -> None:
def test_mcpwm_esp32c5_rev1(dut: Dut) -> None:
dut.run_all_single_board_cases()
@@ -55,7 +55,7 @@ def test_parlio_esp32c5(dut: Dut) -> None:
@pytest.mark.generic
@pytest.mark.esp32c5_eco3
@pytest.mark.esp32c5_rev1
@pytest.mark.parametrize(
'config',
[
@@ -64,5 +64,5 @@ def test_parlio_esp32c5(dut: Dut) -> None:
indirect=True,
)
@idf_parametrize('target', ['esp32c5'], indirect=['target'])
def test_parlio_esp32c5_eco3(dut: Dut) -> None:
def test_parlio_esp32c5_rev1(dut: Dut) -> None:
dut.run_all_single_board_cases()
@@ -20,16 +20,16 @@ def test_ppa(dut: Dut) -> None:
@pytest.mark.generic
@pytest.mark.eco4
@pytest.mark.esp32p4_rev1
@pytest.mark.parametrize(
'config',
[
('esp32p4_eco4'),
('esp32p4_rev1'),
],
indirect=True,
)
@idf_parametrize('target', ['esp32p4'], indirect=['target'])
def test_ppa_esp32p4_eco4(dut: Dut) -> None:
def test_ppa_esp32p4_rev1(dut: Dut) -> None:
dut.run_all_single_board_cases()
@@ -57,7 +57,7 @@ def test_rmt_esp32c5(dut: Dut) -> None:
@pytest.mark.generic
@pytest.mark.esp32c5_eco3
@pytest.mark.esp32c5_rev1
@pytest.mark.parametrize(
'config',
[
@@ -66,7 +66,7 @@ def test_rmt_esp32c5(dut: Dut) -> None:
indirect=True,
)
@idf_parametrize('target', ['esp32c5'], indirect=['target'])
def test_rmt_esp32c5_eco3(dut: Dut) -> None:
def test_rmt_esp32c5_rev1(dut: Dut) -> None:
dut.run_all_single_board_cases()
@@ -30,8 +30,8 @@ def test_sdm_esp32c5(dut: IdfDut) -> None:
@pytest.mark.generic
@pytest.mark.esp32c5_eco3
@pytest.mark.esp32c5_rev1
@pytest.mark.parametrize('config', ['release'], indirect=True)
@idf_parametrize('target', ['esp32c5'], indirect=['target'])
def test_sdm_esp32c5_eco3(dut: IdfDut) -> None:
def test_sdm_esp32c5_rev1(dut: IdfDut) -> None:
dut.run_all_single_board_cases(group='sdm')
@@ -41,7 +41,7 @@ def test_master_single_dev_esp32c5(case_tester) -> None: # type: ignore
@pytest.mark.generic
@pytest.mark.esp32c5_eco3
@pytest.mark.esp32c5_rev1
@pytest.mark.parametrize(
'config',
[
@@ -50,7 +50,7 @@ def test_master_single_dev_esp32c5(case_tester) -> None: # type: ignore
indirect=True,
)
@idf_parametrize('target', ['esp32c5'], indirect=['target'])
def test_master_single_dev_esp32c5_eco3(case_tester) -> None: # type: ignore
def test_master_single_dev_esp32c5_rev1(case_tester) -> None: # type: ignore
for case in case_tester.test_menu:
if 'test_env' in case.attributes:
continue # If `test_env` is defined, should not run on generic runner
@@ -22,10 +22,10 @@ def test_slave_single_dev_esp32c5(case_tester) -> None: # type: ignore
@pytest.mark.generic
@pytest.mark.esp32c5_eco3
@pytest.mark.esp32c5_rev1
@pytest.mark.parametrize('config', ['release'], indirect=True)
@idf_parametrize('target', ['esp32c5'], indirect=['target'])
def test_slave_single_dev_esp32c5_eco3(case_tester) -> None: # type: ignore
def test_slave_single_dev_esp32c5_rev1(case_tester) -> None: # type: ignore
case_tester.run_all_normal_cases(reset=True)
@@ -18,10 +18,10 @@ def test_slave_hd_single_dev(case_tester) -> None: # type: ignore
@pytest.mark.generic
@pytest.mark.esp32c5_eco3
@pytest.mark.esp32c5_rev1
@pytest.mark.parametrize('config', ['release'], indirect=True)
@idf_parametrize('target', ['esp32c5'], indirect=['target'])
def test_slave_hd_single_dev_esp32c5_eco3(case_tester) -> None: # type: ignore
def test_slave_hd_single_dev_esp32c5_rev1(case_tester) -> None: # type: ignore
case_tester.run_all_normal_cases(reset=True, timeout=180)
@@ -24,7 +24,7 @@ def test_temperature_sensor_driver(dut: Dut) -> None:
@pytest.mark.generic
@pytest.mark.esp32c5_eco3
@pytest.mark.esp32c5_rev1
@pytest.mark.parametrize(
'config',
[
@@ -37,7 +37,7 @@ def test_temperature_sensor_driver(dut: Dut) -> None:
['esp32c5'],
indirect=['target'],
)
def test_temperature_sensor_driver_esp32c5_eco3(dut: Dut) -> None:
def test_temperature_sensor_driver_esp32c5_rev1(dut: Dut) -> None:
dut.run_all_single_board_cases()
@@ -25,10 +25,10 @@ def test_driver_twai_loopbk(dut: Dut) -> None:
@pytest.mark.generic
@pytest.mark.esp32c5_eco3
@pytest.mark.esp32c5_rev1
@pytest.mark.parametrize('config', ['release', 'cache_safe'], indirect=True)
@idf_parametrize('target', ['esp32c5'], indirect=['target'])
def test_driver_twai_loopbk_c5eco3(dut: Dut) -> None:
def test_driver_twai_loopbk_c5rev1(dut: Dut) -> None:
dut.run_all_single_board_cases(group='twai', reset=True)
@@ -51,7 +51,7 @@ class EthTestIntf:
def configure_eth_if(self, eth_type: int = 0) -> Iterator[socket.socket]:
if eth_type == 0:
eth_type = self.eth_type
so = socket.socket(socket.AF_PACKET, socket.SOCK_RAW, socket.htons(eth_type))
so = socket.socket(socket.AF_PACKET, socket.SOCK_RAW, socket.htons(eth_type)) # type: ignore
so.bind((self.target_if, 0))
try:
yield so
@@ -306,7 +306,7 @@ def test_esp32_emac_clko(dut: IdfDut) -> None:
'config, target',
[
pytest.param('default_generic_esp32p4', 'esp32p4', marks=[pytest.mark.eth_ip101]),
pytest.param('default_generic_esp32p4v1', 'esp32p4', marks=[pytest.mark.eth_ip101, pytest.mark.esp32p4_eco4]),
pytest.param('default_generic_esp32p4v1', 'esp32p4', marks=[pytest.mark.eth_ip101, pytest.mark.esp32p4_rev1]),
],
indirect=['target'],
)
@@ -320,7 +320,7 @@ def test_esp32p4_ethernet(dut: IdfDut) -> None:
'config, target',
[
pytest.param('default_generic_esp32p4', 'esp32p4', marks=[pytest.mark.eth_ip101]),
pytest.param('default_generic_esp32p4v1', 'esp32p4', marks=[pytest.mark.eth_ip101, pytest.mark.esp32p4_eco4]),
pytest.param('default_generic_esp32p4v1', 'esp32p4', marks=[pytest.mark.eth_ip101, pytest.mark.esp32p4_rev1]),
],
indirect=['target'],
)
@@ -334,7 +334,7 @@ def test_esp32p4_emac(dut: IdfDut) -> None:
'config, target',
[
pytest.param('rmii_clko_esp32p4', 'esp32p4', marks=[pytest.mark.eth_ip101]),
pytest.param('rmii_clko_esp32p4v1', 'esp32p4', marks=[pytest.mark.eth_ip101, pytest.mark.esp32p4_eco4]),
pytest.param('rmii_clko_esp32p4v1', 'esp32p4', marks=[pytest.mark.eth_ip101, pytest.mark.esp32p4_rev1]),
],
indirect=['target'],
)
@@ -32,11 +32,11 @@ def test_esp_hw_support_esp32c5(dut: Dut) -> None:
@pytest.mark.generic
@pytest.mark.esp32c5_eco3
@pytest.mark.esp32c5_rev1
@idf_parametrize(
'config,target',
[('release', 'esp32c5')],
indirect=['config', 'target'],
)
def test_esp_hw_support_esp32c5_eco3(dut: Dut) -> None:
def test_esp_hw_support_esp32c5_rev1(dut: Dut) -> None:
dut.run_all_single_board_cases(timeout=180)
@@ -44,15 +44,15 @@ def test_dsi_lcd_with_virt_flash_enc(dut: Dut) -> None:
@pytest.mark.generic
@pytest.mark.eco4
@pytest.mark.esp32p4_rev1
@pytest.mark.parametrize(
'config',
[
('esp32p4_eco4'),
('esp32p4_rev1'),
],
indirect=True,
)
@idf_parametrize('target', ['esp32p4'], indirect=['target'])
@pytest.mark.temp_skip_ci(targets=['esp32p4'], reason='no runner')
def test_dsi_lcd_esp32p4_eco4(dut: Dut) -> None:
def test_dsi_lcd_esp32p4_rev1(dut: Dut) -> None:
dut.run_all_single_board_cases()
@@ -6,7 +6,7 @@ from pytest_embedded_idf.utils import idf_parametrize
@pytest.mark.generic
@pytest.mark.eco5
@pytest.mark.esp32h2_rev1_2
@idf_parametrize('target', ['esp32h2'], indirect=['target'])
def test_phy(dut: Dut) -> None:
dut.run_all_single_board_cases()
@@ -60,7 +60,7 @@ def esp_reset_and_wait_ready_esp32c5(dut: Dut) -> None:
@pytest.mark.generic
@pytest.mark.esp32c5_eco3
@pytest.mark.esp32c5_rev1
@idf_parametrize(
'config',
[
@@ -70,11 +70,11 @@ def esp_reset_and_wait_ready_esp32c5(dut: Dut) -> None:
indirect=['config'],
)
@idf_parametrize('target', ['esp32c5'], indirect=['target'])
def test_esp_system_esp32c5_eco3(dut: Dut) -> None:
def test_esp_system_esp32c5_rev1(dut: Dut) -> None:
dut.run_all_single_board_cases(timeout=60)
def esp_reset_and_wait_ready_esp32c5_eco3(dut: Dut) -> None:
def esp_reset_and_wait_ready_esp32c5_rev1(dut: Dut) -> None:
dut.serial.hard_reset()
time.sleep(0.5)
dut.expect_exact('Press ENTER to see the list of tests')
@@ -28,30 +28,30 @@ def test_wifi_connect_cases_esp32c2_xtal26m(case_tester: CaseTester) -> None:
case_tester.run_all_cases()
@pytest.mark.esp32c2eco4
@pytest.mark.esp32c2_rev2
@pytest.mark.two_duts
@pytest.mark.xtal_26mhz
@pytest.mark.parametrize(
'count, config, baud',
[
(2, 'esp32c2eco4_xtal26m', '74880'),
(2, 'esp32c2_rev2_xtal26m', '74880'),
],
indirect=True,
)
@idf_parametrize('target', ['esp32c2'], indirect=['target'])
def test_wifi_connect_cases_esp32c2eco4_xtal26m(case_tester: CaseTester) -> None:
def test_wifi_connect_cases_esp32c2_rev2_xtal26m(case_tester: CaseTester) -> None:
case_tester.run_all_cases()
@pytest.mark.two_duts
@pytest.mark.esp32c3eco7
@pytest.mark.esp32c3_rev1
@pytest.mark.parametrize(
'count, config',
[
(2, 'esp32c3eco7'),
(2, 'esp32c3_rev1'),
],
indirect=True,
)
@idf_parametrize('target', ['esp32c3'], indirect=['target'])
def test_wifi_connect_cases_esp32c3eco7(case_tester: CaseTester) -> None:
def test_wifi_connect_cases_esp32c3_rev1(case_tester: CaseTester) -> None:
case_tester.run_all_cases()
@@ -27,30 +27,30 @@ def test_wifi_unit_test_esp32c2_xtal26m(dut: Dut) -> None:
dut.run_all_single_board_cases()
@pytest.mark.esp32c2eco4
@pytest.mark.esp32c2_rev2
@pytest.mark.xtal_26mhz
@pytest.mark.generic
@pytest.mark.parametrize(
'config, baud',
[
('esp32c2eco4_xtal26m', '74880'),
('esp32c2_rev2_xtal26m', '74880'),
],
indirect=True,
)
@idf_parametrize('target', ['esp32c2'], indirect=['target'])
def test_wifi_unit_test_esp32c2eco4_xtal26m(dut: Dut) -> None:
def test_wifi_unit_test_esp32c2_rev2_xtal26m(dut: Dut) -> None:
dut.run_all_single_board_cases()
@pytest.mark.esp32c3eco7
@pytest.mark.esp32c3_rev1
@pytest.mark.generic
@pytest.mark.parametrize(
'config',
[
'esp32c3eco7',
'esp32c3_rev1',
],
indirect=True,
)
@idf_parametrize('target', ['esp32c3'], indirect=['target'])
def test_wifi_unit_test_esp32c3eco7(dut: Dut) -> None:
def test_wifi_unit_test_esp32c3_rev1(dut: Dut) -> None:
dut.run_all_single_board_cases()
@@ -55,40 +55,40 @@ def test_wpa_supplicant_ut_psram(case_tester: CaseTester) -> None:
@pytest.mark.two_duts
@pytest.mark.esp32c2eco4
@pytest.mark.esp32c2_rev2
@pytest.mark.xtal_26mhz
@pytest.mark.parametrize(
'count, config, baud',
[
(
2,
'esp32c2eco4_xtal26m',
'esp32c2_rev2_xtal26m',
'74880',
),
],
indirect=True,
)
@idf_parametrize('target', ['esp32c2'], indirect=['target'])
def test_wpa_supplicant_esp32c2eco4_xtal26mhz(case_tester: CaseTester) -> None:
def test_wpa_supplicant_esp32c2_rev2_xtal26mhz(case_tester: CaseTester) -> None:
for case in case_tester.test_menu:
if case.attributes.get('test_env') == 'two_duts':
case_tester.run_multi_dev_case(case=case, reset=True)
@pytest.mark.two_duts
@pytest.mark.esp32c3eco7
@pytest.mark.esp32c3_rev1
@pytest.mark.parametrize(
'count, config',
[
(
2,
'esp32c3eco7',
'esp32c3_rev1',
),
],
indirect=True,
)
@idf_parametrize('target', ['esp32c3'], indirect=['target'])
def test_wpa_supplicant_esp32c3eco7(case_tester: CaseTester) -> None:
def test_wpa_supplicant_esp32c3_rev1(case_tester: CaseTester) -> None:
for case in case_tester.test_menu:
if case.attributes.get('test_env') == 'two_duts':
case_tester.run_multi_dev_case(case=case, reset=True)