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.
This commit is contained in:
parent
923ec1169f
commit
a49a96bb5d
@ -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('/'))
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user