Browse Source

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/2960/head
Damien George 8 years ago
parent
commit
a49a96bb5d
  1. 4
      tests/extmod/vfs_basic.py

4
tests/extmod/vfs_basic.py

@ -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…
Cancel
Save