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>
This commit is contained in:
@@ -84,6 +84,8 @@ class __FS:
|
|||||||
pass
|
pass
|
||||||
def chdir(self, path):
|
def chdir(self, path):
|
||||||
pass
|
pass
|
||||||
|
def getcwd(self):
|
||||||
|
return ""
|
||||||
def stat(self, path):
|
def stat(self, path):
|
||||||
if path == '__injected_test.mpy':
|
if path == '__injected_test.mpy':
|
||||||
return tuple(0 for _ in range(10))
|
return tuple(0 for _ in range(10))
|
||||||
|
|||||||
Reference in New Issue
Block a user