Extract synchronizer name correctly in diag verification test
Change-Id: I866e7e3ea3c91076846f596371ed440c2da3573c
diff --git a/src/test/diag/verifyCollectDiag.robot b/src/test/diag/verifyCollectDiag.robot
index 92ac5f4..299da2b 100644
--- a/src/test/diag/verifyCollectDiag.robot
+++ b/src/test/diag/verifyCollectDiag.robot
@@ -37,9 +37,9 @@
[Documentation] Verify synchronizer logs are correct
${synchronizerLogs} utils.readFiles /home/cord/diag-*/docker/*synchronizer*
: FOR ${key} IN @{synchronizerLogs.keys()}
- \ @{nameWithSuffix}= Split String ${key} cord_
- \ @{name}= Split String @{nameWithSuffix}[1] -synchronizer
- \ ${synchronizerConfig} utils.readFile /opt/cord/orchestration/xos_services/*/xos/synchronizer/@{name}[0]_config.yaml
+ \ @{name}= Split String ${key} -synchronizer
+ \ @{name}= Split String From Right @{name}[0] _ 1
+ \ ${synchronizerConfig} utils.readFile /opt/cord/orchestration/xos_services/*/xos/synchronizer/@{name}[1]_config.yaml
\ ${synchronizerLog}= Get From Dictionary ${synchronizerLogs} ${key}
\ Run Keyword And Continue On Failure Verify Synchronizer Log ${synchronizerConfig} ${synchronizerLog}