From c5d88af9dc6d073b601c7828c5133a299e99fbb2 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?S=C3=A9bastien=20Riette?= <sebastien.riette@meteo.fr>
Date: Wed, 20 Dec 2023 14:01:09 +0100
Subject: [PATCH] S. Riette 20 Dec 2023: testing BF

---
 tools/testing.sh | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/tools/testing.sh b/tools/testing.sh
index 7b24d0e0d..92c4ccf52 100755
--- a/tools/testing.sh
+++ b/tools/testing.sh
@@ -68,6 +68,7 @@ enableghpages=1
 perfopt=""
 docgen=1
 
+allargs="$@"
 while [ -n "$1" ]; do
   case "$1" in
     '-h') usage; exit;;
@@ -269,8 +270,8 @@ if [ ${force} -eq 1 -o $(get_statuses "${SHA}" | grep "${context}" | wc -l) -eq
     cd "${currentdir}"
     if [ -f "${WORKDIR}/PHYEX/tools/testing.sh" ]; then
       if [ "${currentMD5}" != $(md5sum "${WORKDIR}/PHYEX/tools/testing.sh" | cut -d\  -f1) ]; then
-        log 1 "Script has changed, running the new version" #This log and the preivous ones are lost
-        exec "${WORKDIR}/PHYEX/tools/testing.sh" $@
+        log 1 "Script has changed, running the new version" #This log and the previous ones are lost
+        exec "${WORKDIR}/PHYEX/tools/testing.sh" $allargs
       fi
     fi
   fi
-- 
GitLab