From b0e8ce0111d1d5aae11e6d58a46e111ff3144653 Mon Sep 17 00:00:00 2001 From: "igor.udot" Date: Thu, 13 Jun 2024 08:42:17 +0800 Subject: [PATCH] ci: replace pytest function for linux target --- components/efuse/test_apps/pytest_efuse.py | 4 +--- .../test_apps/host_test_linux/pytest_esp_hw_support_linux.py | 4 +--- .../test_apps/linux_apis/pytest_esp_system_linux.py | 4 +--- components/hal/test_apps/hal_utils/pytest_hal_utils.py | 4 +--- .../heap/test_apps/host_test_linux/pytest_heap_linux.py | 4 +--- 5 files changed, 5 insertions(+), 15 deletions(-) diff --git a/components/efuse/test_apps/pytest_efuse.py b/components/efuse/test_apps/pytest_efuse.py index b7363fc431..f746d5cd98 100644 --- a/components/efuse/test_apps/pytest_efuse.py +++ b/components/efuse/test_apps/pytest_efuse.py @@ -21,6 +21,4 @@ def test_efuse_qemu(dut: Dut) -> None: @pytest.mark.linux @pytest.mark.host_test def test_efuse_linux(dut: Dut) -> None: - dut.expect_exact('Press ENTER to see the list of tests.') - dut.write('*') - dut.expect_unity_test_output(timeout=60) + dut.run_all_single_board_cases(timeout=60) diff --git a/components/esp_hw_support/test_apps/host_test_linux/pytest_esp_hw_support_linux.py b/components/esp_hw_support/test_apps/host_test_linux/pytest_esp_hw_support_linux.py index 27c1688489..a2dce9a03e 100644 --- a/components/esp_hw_support/test_apps/host_test_linux/pytest_esp_hw_support_linux.py +++ b/components/esp_hw_support/test_apps/host_test_linux/pytest_esp_hw_support_linux.py @@ -7,6 +7,4 @@ from pytest_embedded import Dut @pytest.mark.linux @pytest.mark.host_test def test_esp_hw_support_linux(dut: Dut) -> None: - dut.expect_exact('Press ENTER to see the list of tests') - dut.write('![ignore]') - dut.expect_unity_test_output(timeout=120) + dut.run_all_single_board_cases(group='!ignore', timeout=120) diff --git a/components/esp_system/test_apps/linux_apis/pytest_esp_system_linux.py b/components/esp_system/test_apps/linux_apis/pytest_esp_system_linux.py index d398ee7de9..811afecc86 100644 --- a/components/esp_system/test_apps/linux_apis/pytest_esp_system_linux.py +++ b/components/esp_system/test_apps/linux_apis/pytest_esp_system_linux.py @@ -7,6 +7,4 @@ from pytest_embedded import Dut @pytest.mark.linux @pytest.mark.host_test def test_esp_system_linux(dut: Dut) -> None: - dut.expect_exact('Press ENTER to see the list of tests.') - dut.write('*') - dut.expect_unity_test_output(timeout=60) + dut.run_all_single_board_cases(timeout=60) diff --git a/components/hal/test_apps/hal_utils/pytest_hal_utils.py b/components/hal/test_apps/hal_utils/pytest_hal_utils.py index 665355ba89..c8e422e42c 100644 --- a/components/hal/test_apps/hal_utils/pytest_hal_utils.py +++ b/components/hal/test_apps/hal_utils/pytest_hal_utils.py @@ -7,6 +7,4 @@ from pytest_embedded import Dut @pytest.mark.linux @pytest.mark.host_test def test_hal_utils(dut: Dut) -> None: - dut.expect_exact('Press ENTER to see the list of tests.') - dut.write('*') - dut.expect_unity_test_output() + dut.run_all_single_board_cases() diff --git a/components/heap/test_apps/host_test_linux/pytest_heap_linux.py b/components/heap/test_apps/host_test_linux/pytest_heap_linux.py index 44dc9bbdac..41e79ac944 100644 --- a/components/heap/test_apps/host_test_linux/pytest_heap_linux.py +++ b/components/heap/test_apps/host_test_linux/pytest_heap_linux.py @@ -7,6 +7,4 @@ from pytest_embedded import Dut @pytest.mark.linux @pytest.mark.host_test def test_heap_linux(dut: Dut) -> None: - dut.expect_exact('Press ENTER to see the list of tests.') - dut.write('*') - dut.expect_unity_test_output(timeout=60) + dut.run_all_single_board_cases(timeout=60)