From c34ea9cef63a8549adfa4e3b9a79850027a6d9d4 Mon Sep 17 00:00:00 2001 From: wanlei Date: Fri, 14 Apr 2023 12:03:38 +0800 Subject: [PATCH 1/2] ci: pytest automation script increase timeout time --- tools/ci/idf_unity_tester.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/ci/idf_unity_tester.py b/tools/ci/idf_unity_tester.py index cbe909bc4ea..bc6685fc06b 100644 --- a/tools/ci/idf_unity_tester.py +++ b/tools/ci/idf_unity_tester.py @@ -264,7 +264,7 @@ def _run(self, **kwargs) -> None: # type: ignore for retry in range(self.retry_times): dut.write(str(case.index)) try: - dut.expect_exact('Running {}...'.format(case.name), timeout=1) + dut.expect_exact('Running {}...'.format(case.name), timeout=10) break except TIMEOUT as e: if retry >= self.retry_times - 1: From ad1ba78129a4b644d10b302596ced7f0d1be511d Mon Sep 17 00:00:00 2001 From: wanlei Date: Mon, 17 Apr 2023 10:32:59 +0800 Subject: [PATCH 2/2] sdio: test_sdio add unity sync signals --- components/driver/test_apps/sdio/main/test_sdio.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/components/driver/test_apps/sdio/main/test_sdio.c b/components/driver/test_apps/sdio/main/test_sdio.c index 64e48bd07f5..063bb6ef544 100644 --- a/components/driver/test_apps/sdio/main/test_sdio.c +++ b/components/driver/test_apps/sdio/main/test_sdio.c @@ -126,6 +126,8 @@ static void deinit_essl(essl_handle_t handle, const sdio_test_config_t *conf); static void test_framework_master(test_func_t test_func, const sdio_test_config_t* config) { + unity_send_signal("Master ready"); + unity_wait_for_signal("Slave ready"); ESP_LOGI(MASTER_TAG, "### Testing %s... ####", config->test_name); essl_handle_t handle; esp_err_t err; @@ -552,6 +554,7 @@ static void wait_for_finish(slave_context_t *ctx) static void test_framework_slave(test_func_slave_t test_func, const sdio_test_config_t* config) { + unity_wait_for_signal("Master ready"); slave_context.s_finished = false; esp_err_t err; sdio_slave_config_t slave_config = { @@ -566,7 +569,7 @@ static void test_framework_slave(test_func_slave_t test_func, const sdio_test_co err = sdio_slave_start(); TEST_ESP_OK(err); - ESP_LOGI(SLAVE_TAG, "slave ready"); + unity_send_signal("Slave ready"); test_func(&slave_context, config);