summaryrefslogtreecommitdiff
path: root/tests/extmod/vfs_basic.py
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2018-06-06 13:15:04 +1000
committerDamien George <damien.p.george@gmail.com>2018-06-06 14:28:23 +1000
commit1d40f12e44afcd0ac13fd78598098298831e254e (patch)
tree4af2ea92744463380cc4fa94fe05b142904efcfe /tests/extmod/vfs_basic.py
parentd4ce57e4e320a717db1a231f2e6c1e92afaafde0 (diff)
unix: Support MICROPY_VFS_POSIX and enable it in coverage build.
The unix coverage build is now switched fully to the VFS implementation, ie the uos module is the uos_vfs module. For example, one can now sandbox uPy to their home directory via: $ ./micropython_coverage >>> import uos >>> uos.umount('/') # unmount existing root VFS >>> vfs = uos.VfsPosix('/home/user') # create new POSIX VFS >>> uos.mount(vfs, '/') # mount new POSIX VFS at root Some filesystem/OS features may no longer work with the coverage build due to this change, and these need to be gradually fixed. The standard unix port remains unchanged, it still uses the traditional uos module which directly accesses the underlying host filesystem.
Diffstat (limited to 'tests/extmod/vfs_basic.py')
0 files changed, 0 insertions, 0 deletions