Damien George 4e78c611b4 tools/mpremote: Support trailing slash on dest for non-recursive copy.
This fixes a regression in db59e55fe7a0b67d3af868990468e7b8056afe42: prior
to that commit `mpremote` supported trailing slashes on the destination of
a normal (non-recursive) copy.

Add back support for that, with the semantics that a trailing slash
requires the destination to be an existing directory.

Also add a test for this.

Signed-off-by: Damien George <damien@micropython.org>
2024-11-18 23:27:13 +11:00
..

Tests for mpremote

This directory contains a set of tests for mpremote.

Requirements:

  • A device running MicroPython connected to a serial port on the host.
  • Python 3.x, bash and various Unix tools such as find, mktemp, sed, sort, tr.

To run the tests do:

$ ./run-mpremote-tests.sh

Each test should print "OK" if it passed. Otherwise it will print "CRASH", or "FAIL" and a diff of the expected and actual test output.