Skip to content

Commit

Permalink
tests/extmod/vfs_fat_ilistdir_del.py: Use 512-byte erase block size.
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
dpgeorge committed Mar 29, 2023
1 parent 283c1ba commit a467214
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/extmod/vfs_fat_ilistdir_del.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@


class RAMBlockDevice:
ERASE_BLOCK_SIZE = 4096
ERASE_BLOCK_SIZE = 512

def __init__(self, blocks):
self.data = bytearray(blocks * self.ERASE_BLOCK_SIZE)
Expand Down Expand Up @@ -72,7 +72,7 @@ def test(bdev, vfs_class):


try:
bdev = RAMBlockDevice(30)
bdev = RAMBlockDevice(50)
except MemoryError:
print("SKIP")
raise SystemExit
Expand Down

0 comments on commit a467214

Please sign in to comment.