diff options
author | Damien George <damien@micropython.org> | 2025-01-02 14:11:28 +1100 |
---|---|---|
committer | Damien George <damien@micropython.org> | 2025-01-06 17:55:11 +1100 |
commit | 966eb003946cdddb0e9236a70c432890117f70ab (patch) | |
tree | b90ee4c937e063026971a85b63ec03ba7f8525a5 | |
parent | 510e055c71afd60be1aaae4594ec8f97cf8b9fa9 (diff) |
tests/run-tests.py: Implement getcwd on __FS hook filesystem.
This method is needed by tests like `extmod/vfs_rom.py`.
Signed-off-by: Damien George <damien@micropython.org>
-rwxr-xr-x | tests/run-tests.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/run-tests.py b/tests/run-tests.py index 6af70cb83..1df1b35d2 100755 --- a/tests/run-tests.py +++ b/tests/run-tests.py @@ -84,6 +84,8 @@ class __FS: pass def chdir(self, path): pass + def getcwd(self): + return "" def stat(self, path): if path == '__injected_test.mpy': return tuple(0 for _ in range(10)) |