Skip to content

Commit 159b54b

Browse files
committed
tools/mpremote: Add test for forced copy.
Signed-off-by: Damien George <damien@micropython.org>
1 parent c1a85bb commit 159b54b

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

tools/mpremote/tests/test_filesystem.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,11 @@ $MPREMOTE resume cp "${TMP}/a.py" :aaa
6666
$MPREMOTE resume cp "${TMP}/a.py" :bbb/b.py
6767
$MPREMOTE resume cat :aaa/a.py bbb/b.py
6868

69+
# Test cp -f (force copy).
70+
echo -----
71+
$MPREMOTE resume cp -f "${TMP}/a.py" :aaa
72+
$MPREMOTE resume cat :aaa/a.py
73+
6974
echo -----
7075
$MPREMOTE resume rm :b.py c.py
7176
$MPREMOTE resume ls

tools/mpremote/tests/test_filesystem.sh.exp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,10 @@ print("World")
3838
print("Hello")
3939
print("World")
4040
-----
41+
cp ${TMP}/a.py :aaa
42+
print("Hello")
43+
print("World")
44+
-----
4145
rm :b.py
4246
rm :c.py
4347
ls :

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy