mirror of
https://github.com/espressif/esp-modbus.git
synced 2026-08-03 20:24:09 +02:00
feat(refactor_ci_test): Disabling some of the build/test on the test_app to improve CI runtime
This commit is contained in:
+1
-1
@@ -25,7 +25,7 @@ variables:
|
|||||||
TEST_MARKER:
|
TEST_MARKER:
|
||||||
- "tcp"
|
- "tcp"
|
||||||
- "serial"
|
- "serial"
|
||||||
- "generic"
|
# - "generic" // Disabling during the CI refactor on tests
|
||||||
# - "tcp_p4"
|
# - "tcp_p4"
|
||||||
# - "serial_p4"
|
# - "serial_p4"
|
||||||
|
|
||||||
|
|||||||
@@ -3,7 +3,8 @@ physical_tests:
|
|||||||
- if: IDF_TARGET != "esp32"
|
- if: IDF_TARGET != "esp32"
|
||||||
reason: only manual test is performed for other targets
|
reason: only manual test is performed for other targets
|
||||||
disable:
|
disable:
|
||||||
- if: CONFIG_NAME == "wifi" and SOC_WIFI_SUPPORTED != 1 and IDF_TARGET != "esp32"
|
- if: CONFIG_NAME != "serial"
|
||||||
|
# - if: CONFIG_NAME == "wifi" and SOC_WIFI_SUPPORTED != 1 and IDF_TARGET != "esp32"
|
||||||
|
|
||||||
tcp_instances_tests/mb_tcp_master_instances:
|
tcp_instances_tests/mb_tcp_master_instances:
|
||||||
disable_test:
|
disable_test:
|
||||||
@@ -21,10 +22,16 @@ tcp_instances_tests/mb_tcp_slave_instances:
|
|||||||
|
|
||||||
unit_tests:
|
unit_tests:
|
||||||
disable_test:
|
disable_test:
|
||||||
- if: IDF_TARGET != "esp32"
|
- if: "1 == 1" # Disabling for the Ci build and test Refactor
|
||||||
reason: only manual test is performed for other targets
|
# - if: IDF_TARGET != "esp32"
|
||||||
|
# reason: only manual test is performed for other targets
|
||||||
|
disable:
|
||||||
|
- if: "1 == 1" # Disabling for the Ci test Refactor
|
||||||
|
|
||||||
adapter_tests:
|
adapter_tests:
|
||||||
disable_test:
|
disable_test:
|
||||||
- if: IDF_TARGET != "esp32"
|
- if: "1 == 1" # Disabling for the Ci build and test Refactor
|
||||||
reason: only manual test is performed for other targets
|
# - if: IDF_TARGET != "esp32"
|
||||||
|
# reason: only manual test is performed for other targets
|
||||||
|
disable:
|
||||||
|
- if: "1 == 1" # Disabling for the Ci build and test Refactor
|
||||||
|
|||||||
@@ -16,15 +16,16 @@ def test_modbus_comm_multi_dev_serial(case_tester) -> None: # type: ignore
|
|||||||
print(f"Test case: {case.name}")
|
print(f"Test case: {case.name}")
|
||||||
case_tester.run_multi_dev_case(case=case, reset=True)
|
case_tester.run_multi_dev_case(case=case, reset=True)
|
||||||
|
|
||||||
|
## Disabling for the Ci build and test Refactor
|
||||||
|
|
||||||
@pytest.mark.parametrize("count, config", [(2, "ethernet")], indirect=True)
|
# @pytest.mark.parametrize("count, config", [(2, "ethernet")], indirect=True)
|
||||||
@pytest.mark.parametrize("target", ["esp32"], indirect=True)
|
# @pytest.mark.parametrize("target", ["esp32"], indirect=True)
|
||||||
@pytest.mark.multi_dut_modbus_tcp
|
# @pytest.mark.multi_dut_modbus_tcp
|
||||||
def test_modbus_comm_multi_dev_tcp(case_tester) -> None: # type: ignore
|
# def test_modbus_comm_multi_dev_tcp(case_tester) -> None: # type: ignore
|
||||||
for case in case_tester.test_menu:
|
# for case in case_tester.test_menu:
|
||||||
if (
|
# if (
|
||||||
case.attributes.get("test_env", "multi_dut_modbus_tcp")
|
# case.attributes.get("test_env", "multi_dut_modbus_tcp")
|
||||||
== "multi_dut_modbus_tcp"
|
# == "multi_dut_modbus_tcp"
|
||||||
):
|
# ):
|
||||||
print(f"Test case: {case.name}")
|
# print(f"Test case: {case.name}")
|
||||||
case_tester.run_multi_dev_case(case=case, reset=True)
|
# case_tester.run_multi_dev_case(case=case, reset=True)
|
||||||
|
|||||||
Reference in New Issue
Block a user