Skip to content

Commit

Permalink
Fix integration_test in case testfile does not exist yet
Browse files Browse the repository at this point in the history
  • Loading branch information
hailihu committed Feb 10, 2025
1 parent 17c7c95 commit ad031aa
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ brew install rclone
```
There are also optional dependencies to run tests and create macaroons:
```
brew install shunit2 (or get from https://github.com/kward/shunit2)
brew install shunit2 (or "wget https://raw.githubusercontent.com/kward/shunit2/refs/heads/master/shunit2")
pip install pymacaroons
wget https://raw.githubusercontent.com/sara-nl/GridScripts/master/view-macaroon -P ada
wget https://raw.githubusercontent.com/sara-nl/GridScripts/master/get-macaroon -P ada
Expand Down
3 changes: 2 additions & 1 deletion tests/integration_test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ test_ada_mkdir() {

# Move a file (created in oneTimeSetUp) to folder created in above test
test_ada_mv1() {
echo "ada/ada --tokenfile ${token_file} --mv "/${disk_path}/${dirname}/${testfile}" "/${disk_path}/${dirname}/${testdir}/${testfile}" --api ${api}"
ada/ada --tokenfile ${token_file} --mv "/${disk_path}/${dirname}/${testfile}" "/${disk_path}/${dirname}/${testdir}/${testfile}" --api ${api} >${stdoutF} 2>${stderrF}
result=$?
assertEquals "ada returned error code ${result}" 0 ${result} || return
Expand Down Expand Up @@ -296,7 +297,7 @@ oneTimeSetUp() {
;;
esac
rclone -P copyto --config=${token_file} ${PWD}/$testfile $(basename "${token_file%.*}"):/${tape_path}/${dirname}/${testfile}

rclone -P copyto --config=${token_file} ${PWD}/$testfile $(basename "${token_file%.*}"):/${disk_path}/${dirname}/${testfile}
}


Expand Down

0 comments on commit ad031aa

Please sign in to comment.