diff options
Diffstat (limited to 'tests/extmod/vfs_lfs.py')
-rw-r--r-- | tests/extmod/vfs_lfs.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/extmod/vfs_lfs.py b/tests/extmod/vfs_lfs.py index c3656fe687..1d47605c55 100644 --- a/tests/extmod/vfs_lfs.py +++ b/tests/extmod/vfs_lfs.py @@ -101,6 +101,14 @@ def test(bdev, vfs_class): print(vfs.getcwd()) vfs.chdir("/testdir") print(vfs.getcwd()) + + # create file in directory to make sure paths are relative + vfs.open("test2", "w").close() + print(vfs.stat("test2")) + print(vfs.stat("/testdir/test2")) + vfs.remove("test2") + + # chdir back to root and remove testdir vfs.chdir("/") print(vfs.getcwd()) vfs.rmdir("testdir") |