Fixing transfer tests to account for upload with no option

This commit is contained in:
Alex Epstein 2017-08-05 18:13:47 -04:00
parent 044eb893cb
commit 3fffc785dc
1 changed files with 3 additions and 3 deletions

View File

@ -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!")