Skip to content

Commit 037cc5b

Browse files
committed
fix example tests target
1 parent 6cead00 commit 037cc5b

File tree

4 files changed

+7
-4
lines changed

4 files changed

+7
-4
lines changed

.gitlab-ci.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,7 @@ after_script:
113113
- *check_idf_ver
114114
# This is workaround to build library under esp-idf v4.4
115115
- pip install idf-component-manager --upgrade
116+
- ${IDF_PATH}/install.sh --enable-ci
116117
- cd ${TEST_DIR}/test_apps
117118
- *build_cur_folder
118119
- cd ${TEST_DIR}/examples

examples/serial/pytest_mb_master_slave.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
'ascii'
4444
]
4545

46-
@pytest.mark.esp32
46+
@pytest.mark.parametrize('target', ['esp32'], indirect=True)
4747
@pytest.mark.multi_dut_modbus_serial
4848
@pytest.mark.parametrize('config', test_configs, indirect=True)
4949
@pytest.mark.parametrize(
@@ -65,7 +65,8 @@ def test_modbus_serial_communication(config: str, dut: Tuple[ModbusTestDut, Modb
6565
dut_slave.dut_check_errors()
6666
dut_master.dut_check_errors()
6767

68+
@pytest.mark.parametrize('target', ['esp32'], indirect=True)
6869
@pytest.mark.multi_dut_modbus_generic
6970
@pytest.mark.parametrize('config', ['dummy_config'])
7071
def test_modbus_serial_generic(config) -> None:
71-
print('The generic serial example tests are not provided yet.')
72+
print('The generic serial example tests are not provided yet.')

examples/tcp/pytest_mb_tcp_host_test_slave.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
Stages.STACK_DESTROY: (r'I\s\(([0-9]+)\) SLAVE_TEST: (Modbus controller destroyed).')}
3838

3939

40-
@pytest.mark.esp32
40+
@pytest.mark.parametrize('target', ['esp32'], indirect=True)
4141
@pytest.mark.multi_dut_modbus_tcp
4242
@pytest.mark.parametrize('config', ['ethernet'], indirect=True)
4343
@pytest.mark.parametrize(

examples/tcp/pytest_mb_tcp_master_slave.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
'ethernet'
4343
]
4444

45-
@pytest.mark.esp32
45+
@pytest.mark.parametrize('target', ['esp32'], indirect=True)
4646
@pytest.mark.multi_dut_modbus_tcp
4747
@pytest.mark.parametrize('config', test_configs, indirect=True)
4848
@pytest.mark.parametrize(
@@ -67,6 +67,7 @@ def test_modbus_tcp_communication(dut: Tuple[ModbusTestDut, ModbusTestDut]) -> N
6767
dut_slave.dut_check_errors()
6868
dut_master.dut_check_errors()
6969

70+
@pytest.mark.parametrize('target', ['esp32'], indirect=True)
7071
@pytest.mark.multi_dut_modbus_generic
7172
@pytest.mark.parametrize('config', ['dummy_config'])
7273
def test_modbus_tcp_generic(config) -> None:

0 commit comments

Comments
 (0)