summaryrefslogtreecommitdiffstatshomepage
path: root/tests/extmod/vfs_fat_ramdisk.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_ramdisk.py
parent5395f5bc714785ce1692881531240c4a14e4cf0c (diff)
downloadmicropython-94d87fbb308bf26e35cbb50f294fb06f178df871.tar.gz
micropython-94d87fbb308bf26e35cbb50f294fb06f178df871.zip
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_ramdisk.py')
-rw-r--r--tests/extmod/vfs_fat_ramdisk.py16
1 files changed, 1 insertions, 15 deletions
diff --git a/tests/extmod/vfs_fat_ramdisk.py b/tests/extmod/vfs_fat_ramdisk.py
index 184672ff15..1480d52f6f 100644
--- a/tests/extmod/vfs_fat_ramdisk.py
+++ b/tests/extmod/vfs_fat_ramdisk.py
@@ -34,7 +34,7 @@ class RAMFS:
try:
- bdev = RAMFS(48)
+ bdev = RAMFS(50)
except MemoryError:
print("SKIP")
sys.exit()
@@ -46,11 +46,6 @@ print(b"hello!" not in bdev.data)
vfs = uos.VfsFat(bdev, "/ramdisk")
-try:
- vfs.statvfs("/null")
-except OSError as e:
- print(e.args[0] == uerrno.ENODEV)
-
print("statvfs:", vfs.statvfs("/ramdisk"))
print("getcwd:", vfs.getcwd())
@@ -87,15 +82,6 @@ vfs.chdir("..")
print("getcwd:", vfs.getcwd())
vfs.umount()
-try:
- vfs.listdir()
-except OSError as e:
- print(e.args[0] == uerrno.ENODEV)
-
-try:
- vfs.getcwd()
-except OSError as e:
- print(e.args[0] == uerrno.ENODEV)
vfs = uos.VfsFat(bdev, "/ramdisk")
print(vfs.listdir(b""))