summaryrefslogtreecommitdiffstatshomepage
path: root/tests/run-tests.py
diff options
context:
space:
mode:
authorDamien George <damien@micropython.org>2025-01-02 14:11:28 +1100
committerDamien George <damien@micropython.org>2025-01-06 17:55:11 +1100
commit966eb003946cdddb0e9236a70c432890117f70ab (patch)
treeb90ee4c937e063026971a85b63ec03ba7f8525a5 /tests/run-tests.py
parent510e055c71afd60be1aaae4594ec8f97cf8b9fa9 (diff)
downloadmicropython-966eb003946cdddb0e9236a70c432890117f70ab.tar.gz
micropython-966eb003946cdddb0e9236a70c432890117f70ab.zip
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>
Diffstat (limited to 'tests/run-tests.py')
-rwxr-xr-xtests/run-tests.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/run-tests.py b/tests/run-tests.py
index 6af70cb836..1df1b35d23 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))