summaryrefslogtreecommitdiff
path: root/tests/extmod/vfs_basic.py
AgeCommit message (Collapse)Author
2024-02-07tests: Use vfs module instead of os.Damien George
Signed-off-by: Damien George <damien@micropython.org>
2023-06-08tests: Replace umodule with module everywhere.Jim Mussared
This work was funded through GitHub Sponsors. Signed-off-by: Jim Mussared <jim.mussared@gmail.com>
2020-09-23extmod/vfs: Fix lookup of entry in root dir so it fails correctly.Damien George
Prior to this commit, uos.chdir('/') followed by uos.stat('noexist') would succeed that stat even though the entry did not exist (some other functions like listdir would have similar issues). This is because, if the current directory was the root and the path was relative, mp_vfs_lookup_path would return success for bad paths. Signed-off-by: Damien George <damien@micropython.org>
2020-05-29extmod/vfs: Retain previous working directory if chdir fails.Damien George
Fixes issue #6069.
2020-03-30tests: Format all Python code with black, except tests in basics subdir.David Lechner
This adds the Python files in the tests/ directory to be formatted with ./tools/codeformat.py. The basics/ subdirectory is excluded for now so we aren't changing too much at once. In a few places `# fmt: off`/`# fmt: on` was used where the code had special formatting for readability or where the test was actually testing the specific formatting.
2018-06-06tests/extmod: Remove conditional import of uos_vfs, it no longer exists.Damien George
This conditional import was only used to get the tests working on the unix coverage build, which has now switched to use VFS by default so the uos module alone has the required functionality.
2017-06-11tests/extmod/vfs_basic: Allow test to pass on embedded targets.Damien George
2017-06-10tests: Convert remaining "sys.exit()" to "raise SystemExit".Paul Sokolovsky
2017-06-07extmod/vfs: Allow to statvfs the root directory.Damien George
2017-05-10tests/extmod/vfs: Update tests to reflect new ilistdir() method.Damien George
2017-05-09tests/extmod: Make some vfs tests fully unmount FSs before running.Damien George
Otherwise the existing FSs can interfere with the tests, and in some cases the tests can write to the real FS on the device.
2017-05-05tests/extmod: Add some more VFS tests.Damien George
2017-03-14tests/extmod/vfs_basic: Unmount all existing devices before doing test.Damien George
This is so the test can run successfully on targets that already have something mounted.
2017-03-14tests/extmod/vfs_basic: Add more tests for basic VFS functionality.Damien George
2017-03-13tests/extmod: Add a test for core VFS functionality, sans any filesystem.Damien George