Merge branch 'fix/fatfsgen_tests' into 'master'

fix(storage/fatfsgen): increase test timeout

Closes IDFCI-2681

See merge request espressif/esp-idf!37702
This commit is contained in:
Tomas Rohlinek
2025-03-13 16:30:31 +08:00
2 changed files with 8 additions and 10 deletions

View File

@@ -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");

View File

@@ -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')