Support boot test for Host initiated reset reload
Changes:
- Added new boot test entry
- Added util code to stop PLDM service and wait for reset
Change-Id: I3ef683cfbc1b33da865157ad2bfccda5feffc3e3
Signed-off-by: George Keishing <gkeishin@in.ibm.com>
diff --git a/lib/utils.robot b/lib/utils.robot
index fa00a8d..b1d2d56 100755
--- a/lib/utils.robot
+++ b/lib/utils.robot
@@ -977,3 +977,12 @@
... xyz.openbmc_project.State.Watchdog Interval t ${milliseconds}
BMC Execute Command ${cmd}
+
+Stop PLDM Service And Wait
+ [Documentation] Stop PLDM service and wait for Host to initiate reset.
+
+ BMC Execute Command systemctl stop pldmd.service
+
+ # Check if BMC is still online.
+ Wait Until Keyword Succeeds 3 min 10 sec Is BMC Unpingable
+ Wait For Host To Ping ${OPENBMC_HOST} 2 min