diff --git a/continuousintegration/docker/ctafrontend/cc7/opt/run/bin/ctaeos-mgm.sh b/continuousintegration/docker/ctafrontend/cc7/opt/run/bin/ctaeos-mgm.sh index 7c745176c816bdfcc92af8df4fa23196147beab6..472d0e9bc22725e1befe3df505a40cca1e6630ba 100755 --- a/continuousintegration/docker/ctafrontend/cc7/opt/run/bin/ctaeos-mgm.sh +++ b/continuousintegration/docker/ctafrontend/cc7/opt/run/bin/ctaeos-mgm.sh @@ -208,7 +208,11 @@ fi echo "Waiting for the basic file transfer test to succeed (workaround for the booted/online issue )" for ((i=0; i<300; i++)); do - xrdcp /etc/group root://${eoshost}:/${EOS_TMP_DIR}/testFile && break + # xrdcp --force to overwrite testFile if it was already created in the previous loop + # but xrdcp failed for another reason + xrdcp --force /etc/group root://${eoshost}:/${EOS_TMP_DIR}/testFile && break + # If the file exists the loop exited on a successfull xrdcp, otherwise it exited upon timeout and all xrdcp failed + eos rm ${EOS_TMP_DIR}/testFile echo -n "." sleep 1 done