mirror of
https://github.com/alexanderepstein/Bash-Snippets
synced 2018-11-08 02:59:35 +01:00
Fixing transfer tests to account for upload with no option
This commit is contained in:
parent
044eb893cb
commit
3fffc785dc
1 changed files with 3 additions and 3 deletions
|
@ -21,8 +21,8 @@ fi
|
|||
@test "Testing file upload" {
|
||||
touch $HOME/testFile.txt
|
||||
echo -n "This is some example content." > $HOME/testFile.txt
|
||||
run transfer -s $HOME/testFile.txt
|
||||
transferResponse=$(transfer -s $HOME/testFile.txt)
|
||||
run transfer $HOME/testFile.txt
|
||||
transferResponse=$(transfer $HOME/testFile.txt)
|
||||
rm -f $HOME/testFile.txt
|
||||
transferCommand=$( echo $transferResponse | cut -d $'\n' -f 3 | sed s/"Transfer Download Command:"//g | sed s:"desiredOutputDirectory":"$HOME":g | sed s:"^ "::g)
|
||||
transferStatus=$( echo $transferResponse | grep -Eo "Success!")
|
||||
|
@ -34,7 +34,7 @@ fi
|
|||
@test "Testing file upload & download" {
|
||||
touch $HOME/testFile.txt
|
||||
echo -n "This is some example content." > $HOME/testFile.txt
|
||||
transferResponse=$(transfer -s $HOME/testFile.txt)
|
||||
transferResponse=$(transfer $HOME/testFile.txt)
|
||||
#transferCommand=$( echo $transferResponse | cut -d $'\n' -f 3 | sed s/"Transfer Download Command:"//g | sed s:"desiredOutputDirectory":"$HOME":g | sed s:"^ "::g)
|
||||
id=$(echo $transferResponse | cut -d "/" -f 4)
|
||||
transferStatus=$( echo $transferResponse | grep -Eo "Success!")
|
||||
|
|
Loading…
Reference in a new issue