Commit a49a96bb authored by Damien George's avatar Damien George
Browse files

tests/extmod/vfs_basic: Unmount all existing devices before doing test.

This is so the test can run successfully on targets that already have
something mounted.
parent 923ec116
...@@ -46,6 +46,10 @@ class Filesystem: ...@@ -46,6 +46,10 @@ class Filesystem:
print(self.id, 'open', file, mode) print(self.id, 'open', file, mode)
# first we umount any existing mount points the target may have
for path in uos.listdir('/'):
uos.umount('/' + path)
# stat root dir # stat root dir
print(uos.stat('/')) print(uos.stat('/'))
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment