summaryrefslogtreecommitdiff
path: root/tests/extmod/vfs_fat_fsusermount.py
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2017-01-24 20:55:05 +1100
committerDamien George <damien.p.george@gmail.com>2017-01-27 13:19:10 +1100
commit94d87fbb308bf26e35cbb50f294fb06f178df871 (patch)
tree8894925e2f428c7053d39eda4c6189d7c961a7f9 /tests/extmod/vfs_fat_fsusermount.py
parent5395f5bc714785ce1692881531240c4a14e4cf0c (diff)
test/extmod: Update vfs_fat tests for new OO FatFs library.
The new version of FatFs requires a minimum of 50 blocks on the device. Also, some tests no longer make sense with an OO vfs.
Diffstat (limited to 'tests/extmod/vfs_fat_fsusermount.py')
-rw-r--r--tests/extmod/vfs_fat_fsusermount.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/extmod/vfs_fat_fsusermount.py b/tests/extmod/vfs_fat_fsusermount.py
index 7326172ee..0ab15d827 100644
--- a/tests/extmod/vfs_fat_fsusermount.py
+++ b/tests/extmod/vfs_fat_fsusermount.py
@@ -34,7 +34,7 @@ class RAMFS:
try:
- bdev = RAMFS(48)
+ bdev = RAMFS(50)
except MemoryError:
print("SKIP")
sys.exit()
@@ -75,6 +75,7 @@ uos.vfs_mount(bdev, "/ramdisk")
uos.vfs_umount("/ramdisk")
# readonly mount
+# note: this test doesn't work correctly with new OO FatFs
uos.vfs_mount(bdev, "/ramdisk", readonly=True)
vfs = uos.VfsFat(bdev, "/ramdisk")
try:
@@ -89,7 +90,7 @@ uos.vfs_mount(None, "/ramdisk")
dev = []
try:
for i in range(0,4):
- dev.append(RAMFS(48))
+ dev.append(RAMFS(50))
uos.vfs_mkfs(dev[i], "/ramdisk" + str(i))
uos.vfs_mount(dev[i], "/ramdisk" + str(i))
except OSError as e: