Skip to content

Commit

Permalink
Merge branch 'ci/pytest_case_tester_script_fix' into 'master'
Browse files Browse the repository at this point in the history
ci: pytest automation script increase timeout time

See merge request espressif/esp-idf!23201
  • Loading branch information
wanckl committed Apr 17, 2023
2 parents 3bc3f87 + ad1ba78 commit 029b56d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion components/driver/test_apps/sdio/main/test_sdio.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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 = {
Expand All @@ -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);

Expand Down
2 changes: 1 addition & 1 deletion tools/ci/idf_unity_tester.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 029b56d

Please sign in to comment.