summaryrefslogtreecommitdiffstatshomepage
path: root/tests
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2017-03-14 22:08:37 +1100
committerDamien George <damien.p.george@gmail.com>2017-03-14 22:08:37 +1100
commita49a96bb5d683bb2a721da70c4c3f049cf6ba2f3 (patch)
tree4ff75f77f65ac0dca94194b49fd971ec613c6ecc /tests
parent923ec1169f2c14bd97ffbc01c5a78d31c6e9eded (diff)
downloadmicropython-a49a96bb5d683bb2a721da70c4c3f049cf6ba2f3.tar.gz
micropython-a49a96bb5d683bb2a721da70c4c3f049cf6ba2f3.zip
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.
Diffstat (limited to 'tests')
-rw-r--r--tests/extmod/vfs_basic.py4
1 files changed, 4 insertions, 0 deletions
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('/'))