From 4dc7b5b025cbbd77b8a65f99e5f3546a434ab32a Mon Sep 17 00:00:00 2001
From: Fabrice Le Goff <fabrice.le.goff@cern.ch>
Date: Mon, 13 Feb 2023 18:55:20 +0100
Subject: [PATCH] handle .testcfg extension is IS name

---
 Script/cs/Tools/LogConfig.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/Script/cs/Tools/LogConfig.py b/Script/cs/Tools/LogConfig.py
index cc7183e..c77b712 100644
--- a/Script/cs/Tools/LogConfig.py
+++ b/Script/cs/Tools/LogConfig.py
@@ -8,7 +8,8 @@ def make_is_data_identifier(is_server,tdaq_app_name):
 
 def make_tdaq_app_name(config):
     hostname = socket.gethostname()
-    cleanFileName = config.FileName.replace("Config", "",1).replace("Conf","",1).replace(".cfg","",1).replace("-","").replace("_","")
+    cleanFileName = config.FileName.replace("Config", "",1).replace("Conf","",1)\
+            .replace(".cfg","",1).replace("-","").replace("_","").replace(".testcfg","",1)
     if len(cleanFileName) == 0:
         return "CastorScript-{}".format(hostname)
     return "CastorScript-{}-{}".format(hostname, cleanFileName)
-- 
GitLab