Update pflash new command option
Change-Id: I876740e957e53a50c5fdfc8d6c8f6a6483cd4430
Signed-off-by: George Keishing <gkeishin@in.ibm.com>
diff --git a/lib/utils.robot b/lib/utils.robot
index 8f6db0b..374f5ef 100755
--- a/lib/utils.robot
+++ b/lib/utils.robot
@@ -82,6 +82,10 @@
# FFS: Flash header not found. Code: 100
# Error 100 opening ffs !
+ ${stdout} ${stderr} ${rc}=
+ ... BMC Execute Command /usr/sbin/pflash -h | egrep skip ignore_err=${1}
+ ${pflash_cmd}= Run Keyword if ${rc} == ${0}
+ ... Catenate SEPARATOR= ${pflash_cmd} --skip=4096
${pnor_info}= BMC Execute Command ${pflash_cmd}
Should Not Contain Any ${pnor_info} Flash header not found Error