From f416523e16daab0919def4deee87ac4797c29669 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Rohl=C3=ADnek?= Date: Wed, 12 Mar 2025 08:57:00 +0100 Subject: [PATCH] fix(storage/fatfsgen): increase test timeout --- .../fatfsgen/main/fatfsgen_example_main.c | 1 + .../storage/fatfsgen/pytest_fatfsgen_example.py | 17 +++++++---------- 2 files changed, 8 insertions(+), 10 deletions(-) diff --git a/tools/test_apps/storage/fatfsgen/main/fatfsgen_example_main.c b/tools/test_apps/storage/fatfsgen/main/fatfsgen_example_main.c index 37a62a6145..dbbc75263e 100644 --- a/tools/test_apps/storage/fatfsgen/main/fatfsgen_example_main.c +++ b/tools/test_apps/storage/fatfsgen/main/fatfsgen_example_main.c @@ -68,6 +68,7 @@ void app_main(void) ESP_LOGI(TAG, "Opening file"); FILE *f; for(int i = 0; i < CONFIG_EXAMPLE_FATFS_WRITE_COUNT; i++){ + ESP_LOGI(TAG, "Write number: %d", i); f = fopen(device_filename, "wb"); if (f == NULL) { ESP_LOGE(TAG, "Failed to open file for writing"); diff --git a/tools/test_apps/storage/fatfsgen/pytest_fatfsgen_example.py b/tools/test_apps/storage/fatfsgen/pytest_fatfsgen_example.py index 563554ab30..e50bdc800b 100644 --- a/tools/test_apps/storage/fatfsgen/pytest_fatfsgen_example.py +++ b/tools/test_apps/storage/fatfsgen/pytest_fatfsgen_example.py @@ -135,7 +135,7 @@ def validate_directory_structure(base_path: str, expected_structure: FileStructu @idf_parametrize('target', ['esp32'], indirect=['target']) def test_examples_fatfsgen(config: str, dut: Dut) -> None: # Default timeout - a bit overkill, but better than failing tests - timeout = 60 + timeout = 600 def expect(msg: str, timeout: int = timeout) -> None: dut.expect(msg, timeout=timeout) @@ -177,15 +177,12 @@ def test_examples_fatfsgen(config: str, dut: Dut) -> None: expect('example: Mounting FAT filesystem') if not config_read_only: - expect_all( - [ - 'example: Opening file', - 'example: File written', - 'example: Reading file', - 'example: Read from file: ' + "'This is written by the device'", - ], - 30, - ) + expect_all([ + 'example: Opening file', + 'example: File written', + 'example: Reading file', + 'example: Read from file: ' + "'This is written by the device'", + ]) expect('example: Reading file')