Skip to content

Commit

Permalink
tools/mpremote: Add test for forced copy.
Browse files Browse the repository at this point in the history
Signed-off-by: Damien George <[email protected]>
  • Loading branch information
dpgeorge committed Nov 18, 2024
1 parent c1a85bb commit 159b54b
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tools/mpremote/tests/test_filesystem.sh
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,11 @@ $MPREMOTE resume cp "${TMP}/a.py" :aaa
$MPREMOTE resume cp "${TMP}/a.py" :bbb/b.py
$MPREMOTE resume cat :aaa/a.py bbb/b.py

# Test cp -f (force copy).
echo -----
$MPREMOTE resume cp -f "${TMP}/a.py" :aaa
$MPREMOTE resume cat :aaa/a.py

echo -----
$MPREMOTE resume rm :b.py c.py
$MPREMOTE resume ls
Expand Down
4 changes: 4 additions & 0 deletions tools/mpremote/tests/test_filesystem.sh.exp
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,10 @@ print("World")
print("Hello")
print("World")
-----
cp ${TMP}/a.py :aaa
print("Hello")
print("World")
-----
rm :b.py
rm :c.py
ls :
Expand Down

0 comments on commit 159b54b

Please sign in to comment.