Verify the latest collected diag data
Change-Id: I93dbd4f82dc3b0aa86f79faca48fa090e10bfdcb
diff --git a/src/test/diag/verifyCollectDiag.robot b/src/test/diag/verifyCollectDiag.robot
index ca3408f..4139d3a 100644
--- a/src/test/diag/verifyCollectDiag.robot
+++ b/src/test/diag/verifyCollectDiag.robot
@@ -37,7 +37,8 @@
Verify Synchronizer Logs
[Documentation] Verify synchronizer logs are correct
- ${synchronizerLogs} utils.readFiles /home/cord/diag-*/docker/*synchronizer*.logs
+ ${latestDiag}= Run ls -1t /home/cord | head -1
+ ${synchronizerLogs} utils.readFiles /home/cord/${latestDiag}/docker/*synchronizer*.logs
: FOR ${key} IN @{synchronizerLogs.keys()}
\ @{name}= Split String ${key} -synchronizer
\ @{name}= Split String From Right @{name}[0] _ 1