forked from espressif/esp-idf
fix(storage/fatfsgen): increase test timeout
This commit is contained in:
@@ -68,6 +68,7 @@ void app_main(void)
|
|||||||
ESP_LOGI(TAG, "Opening file");
|
ESP_LOGI(TAG, "Opening file");
|
||||||
FILE *f;
|
FILE *f;
|
||||||
for(int i = 0; i < CONFIG_EXAMPLE_FATFS_WRITE_COUNT; i++){
|
for(int i = 0; i < CONFIG_EXAMPLE_FATFS_WRITE_COUNT; i++){
|
||||||
|
ESP_LOGI(TAG, "Write number: %d", i);
|
||||||
f = fopen(device_filename, "wb");
|
f = fopen(device_filename, "wb");
|
||||||
if (f == NULL) {
|
if (f == NULL) {
|
||||||
ESP_LOGE(TAG, "Failed to open file for writing");
|
ESP_LOGE(TAG, "Failed to open file for writing");
|
||||||
|
@@ -135,7 +135,7 @@ def validate_directory_structure(base_path: str, expected_structure: FileStructu
|
|||||||
@idf_parametrize('target', ['esp32'], indirect=['target'])
|
@idf_parametrize('target', ['esp32'], indirect=['target'])
|
||||||
def test_examples_fatfsgen(config: str, dut: Dut) -> None:
|
def test_examples_fatfsgen(config: str, dut: Dut) -> None:
|
||||||
# Default timeout - a bit overkill, but better than failing tests
|
# Default timeout - a bit overkill, but better than failing tests
|
||||||
timeout = 60
|
timeout = 600
|
||||||
|
|
||||||
def expect(msg: str, timeout: int = timeout) -> None:
|
def expect(msg: str, timeout: int = timeout) -> None:
|
||||||
dut.expect(msg, timeout=timeout)
|
dut.expect(msg, timeout=timeout)
|
||||||
@@ -177,15 +177,12 @@ def test_examples_fatfsgen(config: str, dut: Dut) -> None:
|
|||||||
expect('example: Mounting FAT filesystem')
|
expect('example: Mounting FAT filesystem')
|
||||||
|
|
||||||
if not config_read_only:
|
if not config_read_only:
|
||||||
expect_all(
|
expect_all([
|
||||||
[
|
|
||||||
'example: Opening file',
|
'example: Opening file',
|
||||||
'example: File written',
|
'example: File written',
|
||||||
'example: Reading file',
|
'example: Reading file',
|
||||||
'example: Read from file: ' + "'This is written by the device'",
|
'example: Read from file: ' + "'This is written by the device'",
|
||||||
],
|
])
|
||||||
30,
|
|
||||||
)
|
|
||||||
|
|
||||||
expect('example: Reading file')
|
expect('example: Reading file')
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user