Skip to content

Commit c7182e4

Browse files
committed
mpremote/tests/test_mount: Fix path quoting.
Signed-off-by: Anson Mansfield <amansfield@mantaro.com>
1 parent ecfb38d commit c7182e4

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tools/mpremote/tests/test_mount.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,13 @@ cat << EOF > "${TMP}/mount_package/subpackage/y.py"
2020
def y():
2121
print("y")
2222
EOF
23-
$MPREMOTE mount ${TMP} exec "import mount_package; mount_package.x(); mount_package.y()"
23+
$MPREMOTE mount "${TMP}" exec "import mount_package; mount_package.x(); mount_package.y()"
2424

2525
# Write to a file on the device and see that it's written locally.
2626
echo -----
27-
$MPREMOTE mount ${TMP} exec "open('test.txt', 'w').write('hello world\n')"
27+
$MPREMOTE mount "${TMP}" exec "open('test.txt', 'w').write('hello world\n')"
2828
cat "${TMP}/test.txt"
2929

3030
# Test RemoteFile.readline and RemoteFile.readlines methods.
3131
echo -----
32-
$MPREMOTE mount ${TMP} exec "print(open('test.txt').readlines())"
32+
$MPREMOTE mount "${TMP}" exec "print(open('test.txt').readlines())"

0 commit comments

Comments
 (0)