Fix diag test for rcord-synchronizer
Change-Id: I866aa067a319e6e0c2e9a834a6e707bddfc790b6
diff --git a/src/test/cord-api/Framework/utils/utils.py b/src/test/cord-api/Framework/utils/utils.py
index a274274..254daaa 100644
--- a/src/test/cord-api/Framework/utils/utils.py
+++ b/src/test/cord-api/Framework/utils/utils.py
@@ -51,6 +51,9 @@
dataDict[fileName] = data
if bool(single):
return data
+ if not dataDict:
+ print "Failed to find the file!"
+ return None
return dataDict
def readFiles(self, path):
diff --git a/src/test/diag/verifyCollectDiag.robot b/src/test/diag/verifyCollectDiag.robot
index b9a6010..6254b9e 100644
--- a/src/test/diag/verifyCollectDiag.robot
+++ b/src/test/diag/verifyCollectDiag.robot
@@ -54,7 +54,7 @@
Verify Synchronizer Log
[Arguments] ${name} ${log}
- ${config} utils.readFile /opt/cord/orchestration/xos_services/*/xos/synchronizer/@{name}[1]_config.yaml
+ ${config} utils.readFile /opt/cord/orchestration/*/*/xos/synchronizer/@{name}[1]_config.yaml
${match1}= Get Lines Matching Regexp ${config} ^steps_dir: ".*"$
${match2}= Get Lines Matching Regexp ${config} ^model_policies_dir: ".*"$
Run Keyword If '${match1}' != '${EMPTY}' Should Contain ${log} Waiting for event or timeout msg= "Waiting for event or timeout" not found in @{name}[1] synchronizer log