Fix for certificate directory not found during code update
Resolves openbmc/openbmc-test-automation#1480
Change-Id: Icbadd0c16c245b696d2ceca6a480affb49892dbd
Signed-off-by: Rahul Maheshwari <rahulmaheshwari@in.ibm.com>
diff --git a/extended/code_update/bmc_code_update.robot b/extended/code_update/bmc_code_update.robot
index 0cf0c28..f747cd4 100644
--- a/extended/code_update/bmc_code_update.robot
+++ b/extended/code_update/bmc_code_update.robot
@@ -202,6 +202,10 @@
[Documentation] Test certificate persistency after BMC update.
[Tags] Test_Certificate_Persistency_After_BMC_Code_Update
+ # Create certificate sub-directory in current working directory.
+ Create Directory certificate_dir
+ OperatingSystem.Directory Should Exist ${EXECDIR}${/}certificate_dir
+
${cert_file_path}= Generate Certificate File Via Openssl
... Valid Certificate Valid Privatekey
${file_data}= OperatingSystem.Get Binary File ${cert_file_path}