circuitpython/tests/extmod/vfs_lfs_mount.py.exp
Oliver Joos dc1fd4df73 tests/extmod: Add test to try and mount a block device directly.
Mounting a bdev directly tries to auto-detect the filesystem and if none is
found an OSError(19,) should be raised.

The fourth parameter of readblocks() and writeblocks() must be optional to
support ports with MICROPY_VFS_FAT=1.  Otherwise mounting a bdev may fail
because looking for a FATFS will call readblocks() with only 3 parameters.
2020-12-17 22:43:19 +11:00

17 lines
248 B
Plaintext

test <class 'VfsLfs1'>
OSError(19,)
hello from lfs
package
hello from lfs
lfsmod2.py: print("hello from lfs")
OSError(30,)
test <class 'VfsLfs2'>
OSError(19,)
hello from lfs
package
hello from lfs
lfsmod2.py: print("hello from lfs")
OSError(36,)