diff options
author | Damien George <damien.p.george@gmail.com> | 2017-03-14 22:08:37 +1100 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2017-03-14 22:08:37 +1100 |
commit | a49a96bb5d683bb2a721da70c4c3f049cf6ba2f3 (patch) | |
tree | 4ff75f77f65ac0dca94194b49fd971ec613c6ecc /tests | |
parent | 923ec1169f2c14bd97ffbc01c5a78d31c6e9eded (diff) | |
download | micropython-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.py | 4 |
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('/')) |