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 b2cbc560e4faafd98c4cf29df56adcf4221e3c34..a8a423d8e92b9d8f086fcb9678e647200ed5712d 100755
--- a/continuousintegration/docker/ctafrontend/cc7/opt/run/bin/ctaeos-mgm.sh
+++ b/continuousintegration/docker/ctafrontend/cc7/opt/run/bin/ctaeos-mgm.sh
@@ -203,7 +203,7 @@ fi
   done
   echo OK
   failed_xrdcp_test=$i
-  if test $failed_xrdcp_test -ne 0; then
+  if test $failed_xrdcp_test -eq 0; then
     echo "[SUCCESS]: basic file transfer test on online/booted FS." | tee -a /var/log/CI_tests
   else
     echo "[ERROR]: basic file transfer test on online/booted FS (${failed_xrdcp_test} attempts)." | tee -a /var/log/CI_tests