Add testcase to verify PEL reverse command

Added testcase:
    Verify Reverse PEL Logs

Change-Id: If3c7272a4cae8f954a25de1f4cb262490e2b984e
Signed-off-by: manashsarma <manashsarma@in.ibm.com>
diff --git a/openpower/pel/test_bmc_pel.robot b/openpower/pel/test_bmc_pel.robot
index f1765c6..d6af71c 100644
--- a/openpower/pel/test_bmc_pel.robot
+++ b/openpower/pel/test_bmc_pel.robot
@@ -542,6 +542,20 @@
     Should Be True  ${percent_diff} <= 0.5
 
 
+Verify Reverse Order Of PEL Logs
+    [Documentation]  Verify PEL command to output PEL logs in reverse order.
+    [Tags]  Verify_Reverse_PEL_Logs
+
+    Redfish Purge Event Log
+    BMC Execute Command  ${CMD_UNRECOVERABLE_ERROR}
+    BMC Execute Command  ${CMD_PREDICTIVE_ERROR}
+
+    ${pel_records}=  Peltool  -rl
+    ${pel_ids}=  Get Dictionary Keys   ${pel_records}   False
+
+    Should Be True  ${pel_ids}[0] > ${pel_ids}[1]
+
+
 *** Keywords ***
 
 Get Disk Usage For Error Logs