diff options
author | Damien George <damien.p.george@gmail.com> | 2017-01-24 20:55:05 +1100 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2017-01-27 13:19:10 +1100 |
commit | 94d87fbb308bf26e35cbb50f294fb06f178df871 (patch) | |
tree | 8894925e2f428c7053d39eda4c6189d7c961a7f9 /tests/extmod/vfs_fat_ramdisk.py | |
parent | 5395f5bc714785ce1692881531240c4a14e4cf0c (diff) | |
download | micropython-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.py | 16 |
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"")) |