Fix openpower secure boot test
Changes:
- 1)Explicitly removing the gaurd partition
(Corrected the path and used new variable).
- 2)Remove Clear BMC Gard record keyword because of conflict.
Tested: Verified working.
Resolve openbmc/openbmc-test-automation#1635
Change-Id: I8ba3cce07d0d20f3ebc4d4c3f732db7cb2f35f52
Signed-off-by: Lakshminarayana R. Kammath <lkammath@in.ibm.com>
Signed-off-by: George Keishing <gkeishin@in.ibm.com>
diff --git a/openpower/secureboot/secure.robot b/openpower/secureboot/secure.robot
index 2398453..ceac1e4 100644
--- a/openpower/secureboot/secure.robot
+++ b/openpower/secureboot/secure.robot
@@ -24,6 +24,7 @@
# Description of BC8A1E07 A problem occurred during the IPL of the system.
${pnor_corruption_src} BC8A1E07
${bmc_image_dir_path} /usr/local/share/pnor
+${bmc_guard_dir_path} /var/lib/phosphor-software-manager/pnor/prsv
${FFDC_TOOL_DIR_PATH} ${EMPTY}
*** Test Cases ***
@@ -170,10 +171,16 @@
Run export PATH=$PATH:${FFDC_TOOL_DIR_PATH}
Set Environment Variable ${FFDC_TOOL_DIR_PATH} ${FFDC_TOOL_DIR_PATH}
${bmc_image_dir_path}= Add Trailing Slash ${bmc_image_dir_path}
+ ${bmc_guard_dir_path}= Add Trailing Slash ${bmc_guard_dir_path}
+
Set Global Variable ${bmc_image_dir_path}
Log ${bmc_image_dir_path}
BMC Execute Command rm -rf ${bmc_image_dir_path}*
+ Set Global Variable ${bmc_guard_dir_path}
+ Log ${bmc_guard_dir_path}
+ BMC Execute Command rm -rf ${bmc_guard_dir_path}*
+
Test Setup Execution
[Documentation] Test setup execution.
@@ -185,7 +192,7 @@
REST Power Off stack_mode=skip quiet=1
Delete Error Logs And Verify
- Clear BMC Gard record
+
Test Teardown Execution