mirror of
https://github.com/espressif/esp-modbus.git
synced 2025-09-25 14:10:56 +02:00
Merge branch 'bugfix/pytest_fix_target_issue1' into 'main'
fix example tests target issues (addition) See merge request idf/esp-modbus!137
This commit is contained in:
@@ -113,6 +113,7 @@ after_script:
|
||||
- *check_idf_ver
|
||||
# This is workaround to build library under esp-idf v4.4
|
||||
- pip install idf-component-manager --upgrade
|
||||
- ${IDF_PATH}/install.sh --enable-ci
|
||||
- cd ${TEST_DIR}/test_apps
|
||||
- *build_cur_folder
|
||||
- cd ${TEST_DIR}/examples
|
||||
|
@@ -43,7 +43,7 @@ test_configs = [
|
||||
'ascii'
|
||||
]
|
||||
|
||||
@pytest.mark.esp32
|
||||
@pytest.mark.parametrize('target', ['esp32'], indirect=True)
|
||||
@pytest.mark.multi_dut_modbus_serial
|
||||
@pytest.mark.parametrize('config', test_configs, indirect=True)
|
||||
@pytest.mark.parametrize(
|
||||
@@ -65,7 +65,8 @@ def test_modbus_serial_communication(config: str, dut: Tuple[ModbusTestDut, Modb
|
||||
dut_slave.dut_check_errors()
|
||||
dut_master.dut_check_errors()
|
||||
|
||||
@pytest.mark.parametrize('target', ['esp32'], indirect=True)
|
||||
@pytest.mark.multi_dut_modbus_generic
|
||||
@pytest.mark.parametrize('config', ['dummy_config'])
|
||||
def test_modbus_serial_generic(config) -> None:
|
||||
print('The generic serial example tests are not provided yet.')
|
||||
print('The generic serial example tests are not provided yet.')
|
||||
|
@@ -37,7 +37,7 @@ pattern_dict_slave = {Stages.STACK_IPV4: (r'I \([0-9]+\) example_[a-z]+: - IPv4
|
||||
Stages.STACK_DESTROY: (r'I\s\(([0-9]+)\) SLAVE_TEST: (Modbus controller destroyed).')}
|
||||
|
||||
|
||||
@pytest.mark.esp32
|
||||
@pytest.mark.parametrize('target', ['esp32'], indirect=True)
|
||||
@pytest.mark.multi_dut_modbus_tcp
|
||||
@pytest.mark.parametrize('config', ['ethernet'], indirect=True)
|
||||
@pytest.mark.parametrize(
|
||||
|
@@ -42,7 +42,7 @@ test_configs = [
|
||||
'ethernet'
|
||||
]
|
||||
|
||||
@pytest.mark.esp32
|
||||
@pytest.mark.parametrize('target', ['esp32'], indirect=True)
|
||||
@pytest.mark.multi_dut_modbus_tcp
|
||||
@pytest.mark.parametrize('config', test_configs, indirect=True)
|
||||
@pytest.mark.parametrize(
|
||||
@@ -67,6 +67,7 @@ def test_modbus_tcp_communication(dut: Tuple[ModbusTestDut, ModbusTestDut]) -> N
|
||||
dut_slave.dut_check_errors()
|
||||
dut_master.dut_check_errors()
|
||||
|
||||
@pytest.mark.parametrize('target', ['esp32'], indirect=True)
|
||||
@pytest.mark.multi_dut_modbus_generic
|
||||
@pytest.mark.parametrize('config', ['dummy_config'])
|
||||
def test_modbus_tcp_generic(config) -> None:
|
||||
|
Reference in New Issue
Block a user