mirror of
https://github.com/espressif/esp-modbus.git
synced 2026-08-03 20:24:09 +02:00
Merge branch 'fix/tcp-pytest-flaky-reruns' into 'main'
test: add pytest-rerunfailures flaky reruns for Modbus TCP multi-DUT See merge request idf/esp-modbus!172
This commit is contained in:
@@ -66,6 +66,7 @@ pattern_dict_slave = {
|
||||
[(1, f"{os.path.join(os.path.dirname(__file__), 'mb_tcp_slave')}")],
|
||||
indirect=True,
|
||||
)
|
||||
@pytest.mark.flaky(reruns=1, reruns_delay=1)
|
||||
def test_modbus_tcp_host_to_slave_communication(
|
||||
app_path: str, dut: ModbusTestDut
|
||||
) -> None:
|
||||
|
||||
@@ -105,6 +105,7 @@ test_configs = [
|
||||
],
|
||||
indirect=True,
|
||||
)
|
||||
@pytest.mark.flaky(reruns=1, reruns_delay=1)
|
||||
def test_modbus_tcp_communication(
|
||||
app_path: str, dut: Tuple[ModbusTestDut, ModbusTestDut]
|
||||
) -> None:
|
||||
|
||||
@@ -105,6 +105,7 @@ test_configs = [
|
||||
],
|
||||
indirect=True,
|
||||
)
|
||||
@pytest.mark.flaky(reruns=1, reruns_delay=1)
|
||||
def test_modbus_tcp_communication(dut: Tuple[ModbusTestDut, ModbusTestDut]) -> None:
|
||||
dut_master = dut[1]
|
||||
dut_slave = dut[0]
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
pytest
|
||||
pytest-rerunfailures>=12.0
|
||||
pytest-embedded>=1.18.2
|
||||
pytest-embedded-idf
|
||||
pytest-embedded-serial>=1.18.2
|
||||
|
||||
Reference in New Issue
Block a user