mirror of
https://github.com/espressif/esp-modbus.git
synced 2025-09-25 14:10:56 +02:00
Merge branch 'bugfix/fix_test_scripts_latest' into 'main'
fix target test issues ut See merge request idf/esp-modbus!133
This commit is contained in:
@@ -5,12 +5,8 @@ import pytest
|
|||||||
from pytest_embedded import Dut
|
from pytest_embedded import Dut
|
||||||
|
|
||||||
|
|
||||||
CONFIGS = [
|
@pytest.mark.parametrize('target', ['esp32'], indirect=True)
|
||||||
pytest.param('generic', marks=[pytest.mark.esp32, pytest.mark.esp32s2, pytest.mark.esp32s3, pytest.mark.esp32c3]),
|
@pytest.mark.parametrize('config', ['generic'], indirect=True)
|
||||||
]
|
|
||||||
|
|
||||||
|
|
||||||
@pytest.mark.multi_dut_modbus_generic
|
@pytest.mark.multi_dut_modbus_generic
|
||||||
@pytest.mark.parametrize('config', CONFIGS, indirect=True)
|
|
||||||
def test_modbus_controller_common(dut: Dut) -> None:
|
def test_modbus_controller_common(dut: Dut) -> None:
|
||||||
dut.expect_unity_test_output()
|
dut.expect_unity_test_output()
|
||||||
|
@@ -5,12 +5,8 @@ import pytest
|
|||||||
from pytest_embedded import Dut
|
from pytest_embedded import Dut
|
||||||
|
|
||||||
|
|
||||||
CONFIGS = [
|
|
||||||
pytest.param('serial', marks=[pytest.mark.esp32, pytest.mark.esp32s2, pytest.mark.esp32s3, pytest.mark.esp32c3]),
|
|
||||||
]
|
|
||||||
|
|
||||||
|
|
||||||
@pytest.mark.multi_dut_modbus_generic
|
@pytest.mark.multi_dut_modbus_generic
|
||||||
@pytest.mark.parametrize('config', CONFIGS, indirect=True)
|
@pytest.mark.parametrize('target', ['esp32'], indirect=True)
|
||||||
|
@pytest.mark.parametrize('config', ['serial'], indirect=True)
|
||||||
def test_modbus_controller_mapping(dut: Dut) -> None:
|
def test_modbus_controller_mapping(dut: Dut) -> None:
|
||||||
dut.expect_unity_test_output()
|
dut.expect_unity_test_output()
|
||||||
|
@@ -4,6 +4,7 @@
|
|||||||
import pytest
|
import pytest
|
||||||
from pytest_embedded import Dut
|
from pytest_embedded import Dut
|
||||||
|
|
||||||
|
|
||||||
@pytest.mark.parametrize('target', ['esp32'], indirect=True)
|
@pytest.mark.parametrize('target', ['esp32'], indirect=True)
|
||||||
@pytest.mark.multi_dut_modbus_generic
|
@pytest.mark.multi_dut_modbus_generic
|
||||||
def test_mb_endianness_utils(dut: Dut) -> None:
|
def test_mb_endianness_utils(dut: Dut) -> None:
|
||||||
|
Reference in New Issue
Block a user