tools/mpremote/tests: Add test for RemoteFile.readline.
Signed-off-by: Damien George <damien@micropython.org>
This commit is contained in:
@@ -26,3 +26,7 @@ $MPREMOTE mount ${TMP} exec "import mount_package; mount_package.x(); mount_pack
|
||||
echo -----
|
||||
$MPREMOTE mount ${TMP} exec "open('test.txt', 'w').write('hello world\n')"
|
||||
cat "${TMP}/test.txt"
|
||||
|
||||
# Test RemoteFile.readline and RemoteFile.readlines methods.
|
||||
echo -----
|
||||
$MPREMOTE mount ${TMP} exec "print(open('test.txt').readlines())"
|
||||
|
||||
@@ -5,3 +5,6 @@ Local directory ${TMP} is mounted at /remote
|
||||
-----
|
||||
Local directory ${TMP} is mounted at /remote
|
||||
hello world
|
||||
-----
|
||||
['hello world\n']
|
||||
Local directory ${TMP} is mounted at /remote
|
||||
|
||||
Reference in New Issue
Block a user