Adding code to delete error log and BMC dump

Change-Id: I17f2e237d71e9a63d231202f235e41f7530e9bb6
Signed-off-by: Sushil Singh <susilsi7@in.ibm.com>
diff --git a/redfish/update_service/redfish_bmc_code_update.robot b/redfish/update_service/redfish_bmc_code_update.robot
index 5925af6..aa6d999 100644
--- a/redfish/update_service/redfish_bmc_code_update.robot
+++ b/redfish/update_service/redfish_bmc_code_update.robot
@@ -6,6 +6,8 @@
 Resource          ../../lib/openbmc_ffdc.robot
 Resource          ../../lib/common_utils.robot
 Resource          ../../lib/code_update_utils.robot
+Resource          ../../lib/dump_utils.robot
+Resource          ../../lib/logging_utils.robot
 Library           ../../lib/gen_robot_valid.py
 
 Suite Setup       Suite Setup Execution
@@ -54,5 +56,11 @@
     [Documentation]  Do the suite setup.
 
     Redfish.Login
+
+    # Delete BMC dump and Error logs
+    Delete All BMC Dump
+    Redfish Purge Event Log
+
     # Checking for file existence.
     OperatingSystem.File Should Exist  ${IMAGE_FILE_PATH}
+