From 3f47aee0c8b9fbc3ef98e02a13cb633e3eb13dfa Mon Sep 17 00:00:00 2001
From: Julien Leduc <julien.leduc@cern.ch>
Date: Fri, 10 Nov 2017 10:22:48 +0100
Subject: [PATCH] Fixing the fluctuations in the archived file count that are
 due to the automatic deletion of disk replicas in the workflow.

---
 continuousintegration/orchestration/tests/client_ar.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/continuousintegration/orchestration/tests/client_ar.sh b/continuousintegration/orchestration/tests/client_ar.sh
index 690bd50cf5..b10a7d97d4 100644
--- a/continuousintegration/orchestration/tests/client_ar.sh
+++ b/continuousintegration/orchestration/tests/client_ar.sh
@@ -104,7 +104,7 @@ while test 0 != $(grep -c copied$ ${STATUS_FILE}); do
     break
   fi
 
-  echo "$(grep -c archived$ ${STATUS_FILE})/${NB_FILES} archived"
+  echo "$(egrep -c 'archived$|tapeonly' ${STATUS_FILE})/${NB_FILES} archived"
 
   # generating EOS batch script
   grep copied$ ${STATUS_FILE} | sed -e 's/ .*$//' | sed -e "s;^;file info ${EOS_DIR}/;" > ${EOS_BATCHFILE}
-- 
GitLab