Enable PNOR Corruption test to global
Resolves openbmc/openbmc-test-automation#644
Change-Id: I7c8fade92bd29c661d41359b83a6f452618de4f7
Signed-off-by: Sivas SRR <sivas.srr@in.ibm.com>
diff --git a/lib/utils.robot b/lib/utils.robot
index b11022d..d558847 100755
--- a/lib/utils.robot
+++ b/lib/utils.robot
@@ -12,6 +12,7 @@
Library gen_robot_keyword.py
*** Variables ***
+${pflash_cmd} /usr/sbin/pflash -r /dev/stdout -P VERSION
${SYSTEM_SHUTDOWN_TIME} ${5}
${dbuscmdBase}
... dbus-send --system --print-reply --dest=${OPENBMC_BASE_DBUS}.settings.Host
@@ -43,6 +44,16 @@
*** Keywords ***
+Verify PNOR Update
+ [Documentation] Verify that the PNOR is not corrupted.
+ # Example:
+ # FFS: Flash header not found. Code: 100
+ # Error 100 opening ffs !
+
+ Open Connection And Log In
+ ${pnor_info}= Execute Command On BMC ${pflash_cmd}
+ Should Not Contain Any ${pnor_info} Flash header not found Error
+
Get BMC System Model
[Documentation] Get the BMC model from the device tree.