Verify the latest collected diag data
Change-Id: I93dbd4f82dc3b0aa86f79faca48fa090e10bfdcb
(cherry picked from commit dc60493d8f05d570e5644c44c42cf3b4cb2ce6cd)
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