forked from espressif/esp-idf
fix(ci): fix CI unity test cases failure
This commit is contained in:
@@ -1,6 +1,5 @@
|
|||||||
# SPDX-FileCopyrightText: 2022-2023 Espressif Systems (Shanghai) CO LTD
|
# SPDX-FileCopyrightText: 2022-2024 Espressif Systems (Shanghai) CO LTD
|
||||||
# SPDX-License-Identifier: CC0-1.0
|
# SPDX-License-Identifier: CC0-1.0
|
||||||
|
|
||||||
import pytest
|
import pytest
|
||||||
from pytest_embedded import Dut
|
from pytest_embedded import Dut
|
||||||
|
|
||||||
@@ -16,7 +15,8 @@ from pytest_embedded import Dut
|
|||||||
]
|
]
|
||||||
)
|
)
|
||||||
def test_esp_system(dut: Dut) -> None:
|
def test_esp_system(dut: Dut) -> None:
|
||||||
dut.run_all_single_board_cases()
|
# esp32p4 32MB PSRAM initialize in startup takes more than 30 sec
|
||||||
|
dut.run_all_single_board_cases(timeout=60)
|
||||||
|
|
||||||
|
|
||||||
@pytest.mark.generic
|
@pytest.mark.generic
|
||||||
|
@@ -631,6 +631,8 @@ TEST_CASE("Test xTaskResumeAll resumes pended tasks", "[freertos]")
|
|||||||
TEST_ASSERT_EQUAL(pdTRUE, xTaskCreatePinnedToCore(test_pended_running_task, "susp", 2048, (void *)xTaskGetCurrentTaskHandle(), UNITY_FREERTOS_PRIORITY + 1, &susp_tsk_hdl, i));
|
TEST_ASSERT_EQUAL(pdTRUE, xTaskCreatePinnedToCore(test_pended_running_task, "susp", 2048, (void *)xTaskGetCurrentTaskHandle(), UNITY_FREERTOS_PRIORITY + 1, &susp_tsk_hdl, i));
|
||||||
// Wait for to be notified to test completion
|
// Wait for to be notified to test completion
|
||||||
ulTaskNotifyTake(pdTRUE, portMAX_DELAY);
|
ulTaskNotifyTake(pdTRUE, portMAX_DELAY);
|
||||||
|
// Add a short delay to allow the test_pended_running_task to go to suspend state
|
||||||
|
vTaskDelay(1);
|
||||||
vTaskDelete(susp_tsk_hdl);
|
vTaskDelete(susp_tsk_hdl);
|
||||||
}
|
}
|
||||||
// Add a short delay to allow the idle task to free any remaining task memory
|
// Add a short delay to allow the idle task to free any remaining task memory
|
||||||
|
Reference in New Issue
Block a user