Added test case for setting PNOR images to the same priority
Resolves openbmc/openbmc-test-automation#913
Change-Id: Id8f83f10a73f0639d843d369d100dcf0abb393b2
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 799e38f..0fd9e5b 100644
--- a/extended/code_update/host_code_update.robot
+++ b/extended/code_update/host_code_update.robot
@@ -3,7 +3,9 @@
... Execution Method:
... python -m robot -v OPENBMC_HOST:<hostname>
... -v DELETE_OLD_PNOR_IMAGES:<"true" or "false">
-... -v IMAGE_FILE_PATH:<path/*.tar> host_code_update.robot
+... -v IMAGE_FILE_PATH:<path/*.tar>
+... -v ALTERNATE_IMAGE_FILE_PATH:<path/*.tar>
+... host_code_update.robot
...
... Code update method BMC
... Update work flow sequence:
@@ -108,6 +110,16 @@
${ALTERNATE_IMAGE_FILE_PATH} ${VERSION_PURPOSE_HOST}
+Set Same Priority For Multiple Host Images
+ [Documentation] Attempt to set the priority to be the same for two PNOR
+ ... images and verify that the priorities are not the same.
+ [Tags] Set_Same_Priority_For_Multiple_Host_Images
+
+ Run Keyword If '${PREV_TEST_STATUS}' == 'FAIL'
+ ... Fail Activation of alternate image failed. Cannot set priority.
+ Set Same Priority For Multiple Images ${VERSION_PURPOSE_HOST}
+
+
Delete Host Image
[Documentation] Delete a PNOR image from the BMC and PNOR flash chip.
[Tags] Delete_Host_Image