mirror of
https://github.com/wavetermdev/waveterm.git
synced 2025-02-28 03:42:50 +01:00
This adds tests for the corner cases of the `wsh file copy` command. At the moment, these focus on local copies since they are more easily replicated. --------- Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
13 lines
226 B
Bash
Executable File
13 lines
226 B
Bash
Executable File
setup_testcp () {
|
|
if [ -d "$HOME/testcp" ]; then
|
|
echo "Test cannot run if testcp already exists"
|
|
exit 1
|
|
fi
|
|
|
|
mkdir ~/testcp
|
|
}
|
|
|
|
|
|
cleanup_testcp () {
|
|
rm -rf "$HOME/testcp" || rmdir "$HOME/testcp"
|
|
} |