From a49a96bb5d683bb2a721da70c4c3f049cf6ba2f3 Mon Sep 17 00:00:00 2001 From: Damien George Date: Tue, 14 Mar 2017 22:08:37 +1100 Subject: [PATCH] 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. --- tests/extmod/vfs_basic.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/extmod/vfs_basic.py b/tests/extmod/vfs_basic.py index c8f4eaee92..83c83fd227 100644 --- a/tests/extmod/vfs_basic.py +++ b/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('/'))