Added option to delete old GUARD file before a PNOR update
Used Initiate Host PowerOff to make sure the host is off.
Change-Id: I194253aaf52d3af1fe76961fae77cd98fc7320bb
Signed-off-by: Charles Paul Hofer <Charles.Hofer@ibm.com>
diff --git a/extended/code_update/host_code_update.robot b/extended/code_update/host_code_update.robot
index 0fd9e5b..7f87d1d 100644
--- a/extended/code_update/host_code_update.robot
+++ b/extended/code_update/host_code_update.robot
@@ -33,6 +33,7 @@
${QUIET} ${1}
${IMAGE_FILE_PATH} ${EMPTY}
${DELETE_OLD_PNOR_IMAGES} false
+${DELETE_OLD_GUARD_FILE} false
${ALTERNATE_IMAGE_FILE_PATH} ${EMPTY}
*** Test Cases ***
@@ -50,7 +51,6 @@
OBMC Reboot (off)
-
Post Update Boot To OS
[Documentation] Boot the host OS
[Tags] Post_Update_Boot_To_OS
@@ -164,10 +164,13 @@
# - Clean up all existing BMC dumps.
# - Clean up all currently install PNOR images.
+ Initiate Host PowerOff
Delete All Dumps
Delete Error Logs
Run Keyword If 'true' == '${DELETE_OLD_PNOR_IMAGES}'
... Delete All PNOR Images
+ Run Keyword If 'true' == '${DELETE_OLD_GUARD_FILE}' BMC Execute Command
+ ... rm -f /var/lib/phosphor-software-manager/pnor/prsv/GUARD
Upload And Activate Multiple BMC Images Setup