From 0646177997b018326ba07cbd2ff1868bc9906881 Mon Sep 17 00:00:00 2001 From: Damien George Date: Mon, 21 Oct 2024 12:13:00 +1100 Subject: 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 --- tests/extmod/vfs_blockdev_invalid.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests/extmod/vfs_blockdev_invalid.py') 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] -- cgit v1.2.3