feat(storage/fatfs): update deprecated syntax for tests

This commit is contained in:
Tomáš Rohlínek 2023-12-20 09:23:55 +01:00
parent b5d78549a5
commit ede737763c
No known key found for this signature in database
GPG Key ID: BDE1CEDD10F7E372
5 changed files with 11 additions and 37 deletions

View File

@ -255,7 +255,7 @@ menu "FAT Filesystem support"
It may create less fragmented file copy.
config FATFS_USE_DYN_BUFFERS
bool "Use dynamic buffers"
depend on CONFIG_WL_SECTOR_SIZE_4096
depends on CONFIG_WL_SECTOR_SIZE_4096
default y
help
If enabled, the buffers used by FATFS will be allocated separately from the rest of the structure.

View File

@ -1,4 +1,4 @@
# SPDX-FileCopyrightText: 2022 Espressif Systems (Shanghai) CO LTD
# SPDX-FileCopyrightText: 2022-2023 Espressif Systems (Shanghai) CO LTD
# SPDX-License-Identifier: CC0-1.0
import pytest
from pytest_embedded import Dut
@ -8,8 +8,4 @@ from pytest_embedded import Dut
@pytest.mark.esp32c3
@pytest.mark.generic
def test_fatfs_flash_ro(dut: Dut) -> None:
dut.expect_exact('Press ENTER to see the list of tests')
dut.write('')
dut.expect_exact('Enter test for running.')
dut.write('*')
dut.expect_unity_test_output()
dut.run_all_single_board_cases()

View File

@ -13,15 +13,12 @@ from pytest_embedded import Dut
'default',
'release',
'fastseek',
'auto_fsync',
'no_dyn_buffers',
]
)
def test_fatfs_flash_wl_generic(dut: Dut) -> None:
dut.expect_exact('Press ENTER to see the list of tests')
dut.write('')
dut.expect_exact('Enter test for running.')
dut.write('*')
dut.expect_unity_test_output(timeout=180)
dut.run_all_single_board_cases(timeout=240)
@pytest.mark.esp32
@ -34,8 +31,4 @@ def test_fatfs_flash_wl_generic(dut: Dut) -> None:
]
)
def test_fatfs_flash_wl_psram(dut: Dut) -> None:
dut.expect_exact('Press ENTER to see the list of tests')
dut.write('')
dut.expect_exact('Enter test for running.')
dut.write('*')
dut.expect_unity_test_output(timeout=180)
dut.run_all_single_board_cases(timeout=180)

View File

@ -1 +1,2 @@
CONFIG_FATFS_IMMEDIATE_FSYNC=y
CONFIG_ESP_MAIN_TASK_STACK_SIZE=4096

View File

@ -15,11 +15,7 @@ from pytest_embedded import Dut
]
)
def test_fatfs_sdcard_generic_sdmmc(dut: Dut) -> None:
dut.expect_exact('Press ENTER to see the list of tests')
dut.write('')
dut.expect_exact('Enter test for running.')
dut.write('[sdmmc]')
dut.expect_unity_test_output(timeout=180)
dut.run_all_single_board_cases(group='sdmmc', timeout=180)
@pytest.mark.esp32
@ -34,11 +30,7 @@ def test_fatfs_sdcard_generic_sdmmc(dut: Dut) -> None:
]
)
def test_fatfs_sdcard_generic_sdspi(dut: Dut) -> None:
dut.expect_exact('Press ENTER to see the list of tests')
dut.write('')
dut.expect_exact('Enter test for running.')
dut.write('[sdspi]')
dut.expect_unity_test_output(timeout=180)
dut.run_all_single_board_cases(group='sdspi', timeout=180)
@pytest.mark.esp32
@ -51,11 +43,7 @@ def test_fatfs_sdcard_generic_sdspi(dut: Dut) -> None:
]
)
def test_fatfs_sdcard_psram_sdmmc(dut: Dut) -> None:
dut.expect_exact('Press ENTER to see the list of tests')
dut.write('')
dut.expect_exact('Enter test for running.')
dut.write('[sdmmc]')
dut.expect_unity_test_output(timeout=180)
dut.run_all_single_board_cases(group='sdmmc', timeout=180)
@pytest.mark.esp32
@ -69,8 +57,4 @@ def test_fatfs_sdcard_psram_sdmmc(dut: Dut) -> None:
]
)
def test_fatfs_sdcard_psram_sdspi(dut: Dut) -> None:
dut.expect_exact('Press ENTER to see the list of tests')
dut.write('')
dut.expect_exact('Enter test for running.')
dut.write('[sdspi]')
dut.expect_unity_test_output(timeout=180)
dut.run_all_single_board_cases(group='sdspi', timeout=180)