mirror of
https://github.com/wavetermdev/waveterm.git
synced 2025-11-28 05:00:26 +08:00
Adds the following changes to copy tests: - print the body of the test if the test fails - add a count of how many tests passed out of the total - remove the -r flag from the tests
13 lines
253 B
Bash
Executable file
13 lines
253 B
Bash
Executable file
# copy an empty directory to a non-existing directory ending with //
|
|
# ensure the copy succeeds and the new directory exists
|
|
|
|
set -e
|
|
cd "$HOME/testcp"
|
|
mkdir bar
|
|
|
|
wsh file copy bar baz//
|
|
|
|
if [ ! -d baz ]; then
|
|
echo "baz does not exist"
|
|
exit 1
|
|
fi
|