Pgood automation for MFG Stage2

This change addresses:
   1. Verify pgood when power on using IPMI.
   2. Verify pgood when power off using IPMI.

Resolves openbmc/openbmc-test-automation/issues#520

Change-Id: Ia32ddfe021d1f537ff804dd8255a5334afbbc4b3
Signed-off-by: Prashanth Katti <prkatti1@in.ibm.com>
diff --git a/mnfg/pgood.robot b/mnfg/pgood.robot
index f72cccf..4e965e6 100644
--- a/mnfg/pgood.robot
+++ b/mnfg/pgood.robot
@@ -34,3 +34,22 @@
 
     Should Be Equal As Integers  ${data}  0
 
+Verify PGood When Power On Using IPMI
+    [Documentation]  Verify pgood state when power on using IPMI.
+    [Tags]  Verify_PGood_When_Power_On_Using_IPMI
+
+    # Initiate Host poweron using IPMI commands.
+    Initiate Host Boot Via External IPMI
+    ${data}=  Read Attribute  ${POWER_URI}  pgood
+
+    Should Be Equal As Integers  ${data}  1
+
+Verify PGood When Power Off Using IPMI
+    [Documentation]  Verify pgood state when power off using IPMI.
+    [Tags]  Verify_PGood_When_Power_Off_Using_IPMI
+
+    # Initiate Host poweroff using IPMI commands.
+    Initiate Host PowerOff Via External IPMI
+    ${data}=  Read Attribute  ${POWER_URI}  pgood
+
+    Should Be Equal As Integers  ${data}  0