From a4672149b61e453335d68ec12f640aae4b05d604 Mon Sep 17 00:00:00 2001 From: Damien George <damien@micropython.org> Date: Wed, 29 Mar 2023 23:15:16 +1100 Subject: [PATCH] tests/extmod/vfs_fat_ilistdir_del.py: Use 512-byte erase block size. Following other vfs_fat tests, so the test works on ports like stm32 that only support 512-byte block size. Signed-off-by: Damien George <damien@micropython.org> --- tests/extmod/vfs_fat_ilistdir_del.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/extmod/vfs_fat_ilistdir_del.py b/tests/extmod/vfs_fat_ilistdir_del.py index 4389f822bb..ccdacc57c2 100644 --- a/tests/extmod/vfs_fat_ilistdir_del.py +++ b/tests/extmod/vfs_fat_ilistdir_del.py @@ -11,7 +11,7 @@ except (ImportError, AttributeError): class RAMBlockDevice: - ERASE_BLOCK_SIZE = 4096 + ERASE_BLOCK_SIZE = 512 def __init__(self, blocks): self.data = bytearray(blocks * self.ERASE_BLOCK_SIZE) @@ -72,7 +72,7 @@ def test(bdev, vfs_class): try: - bdev = RAMBlockDevice(30) + bdev = RAMBlockDevice(50) except MemoryError: print("SKIP") raise SystemExit -- GitLab