diff options
author | Damien George <damien@micropython.org> | 2024-10-21 12:13:00 +1100 |
---|---|---|
committer | Damien George <damien@micropython.org> | 2024-10-22 14:32:51 +1100 |
commit | 0646177997b018326ba07cbd2ff1868bc9906881 (patch) | |
tree | b8fafa63dbcd393f2de3d8b0075e4f02a8c906a8 /tests/extmod/vfs_blockdev_invalid.py | |
parent | f7abb52847415d535a2acc22decbff16e73f2dc3 (diff) | |
download | micropython-0646177997b018326ba07cbd2ff1868bc9906881.tar.gz micropython-0646177997b018326ba07cbd2ff1868bc9906881.zip |
tests/extmod: Make invalid-blockdev test work consistently on all ports.
Some ports (eg stm32) configure the FAT driver differently (eg with
multi-partition support) and that leads to a slightly different sequence of
block reads, compared to other configurations (eg rp2).
Comment out the printing in `readblocks()` so the tests are deterministic
(the printing is still useful for debugging).
Signed-off-by: Damien George <damien@micropython.org>
Diffstat (limited to 'tests/extmod/vfs_blockdev_invalid.py')
-rw-r--r-- | tests/extmod/vfs_blockdev_invalid.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/extmod/vfs_blockdev_invalid.py b/tests/extmod/vfs_blockdev_invalid.py index 9b12746b26..4d00f4b002 100644 --- a/tests/extmod/vfs_blockdev_invalid.py +++ b/tests/extmod/vfs_blockdev_invalid.py @@ -19,7 +19,7 @@ class RAMBlockDevice: self.write_res = 0 def readblocks(self, block, buf, off=0): - print("readblocks") + # print("readblocks", block, len(buf), off) addr = block * self.ERASE_BLOCK_SIZE + off for i in range(len(buf)): buf[i] = self.data[addr + i] |