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 2017-03-14 22:08:37 +11:00
rodzic 923ec1169f
commit a49a96bb5d
1 zmienionych plików z 4 dodań i 0 usunięć

Wyświetl plik

@ -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('/'))