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.
pull/1/head
Damien George 2017-03-14 22:08:37 +11:00
parent 923ec1169f
commit a49a96bb5d
1 changed files with 4 additions and 0 deletions

View File

@ -46,6 +46,10 @@ class Filesystem:
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
print(uos.stat('/'))