Deprecate manual image removing post code upload.
Resolves openbmc/openbmc-test-automation#1250
Change-Id: I8e687c5810eb11896ceb9898061285143e065dd2
Signed-off-by: George Keishing <gkeishin@in.ibm.com>
diff --git a/extended/code_update/test_image_upload.robot b/extended/code_update/test_image_upload.robot
index f15c86b..28c903f 100644
--- a/extended/code_update/test_image_upload.robot
+++ b/extended/code_update/test_image_upload.robot
@@ -164,9 +164,6 @@
Upload Image Teardown
[Documentation] Log FFDC if test fails for debugging purposes.
- Open Connection And Log In
- Execute Command On BMC rm -rf /tmp/images/*
-
Close All Connections
FFDC On Test Case Fail
diff --git a/extended/test_bmc_upload_stability.robot b/extended/test_bmc_upload_stability.robot
index 94f0e87..a4e68cb 100755
--- a/extended/test_bmc_upload_stability.robot
+++ b/extended/test_bmc_upload_stability.robot
@@ -67,7 +67,5 @@
${resp}= Post Request openbmc /upload/image &{data}
Should Be Equal As Strings ${resp.status_code} ${HTTP_OK}
- BMC Execute Command rm -rf /tmp/images/* quiet=${1}
-
${loop_count}= Catenate Ending iteration: ${iteration}
Rpvars loop_count
diff --git a/syslib/utils_os.robot b/syslib/utils_os.robot
index 51e22e6..881fa40 100755
--- a/syslib/utils_os.robot
+++ b/syslib/utils_os.robot
@@ -151,8 +151,6 @@
${resp}= Post Request openbmc /upload/image &{data}
Should Be Equal As Strings ${resp.status_code} ${HTTP_OK}
- # Delete uploaded image file.
- # TODO: Delete via REST openbmc/openbmc#1550
# Take SSH connection to BMC and switch to BMC connection to perform
# the task.
&{bmc_connection_args}= Create Dictionary alias=bmc_connection
@@ -160,7 +158,6 @@
# Currently OS SSH session is active, switch to BMC connection.
Switch Connection bmc_connection
- Execute Command On BMC rm -f /tmp/images/*
# Switch back to OS SSH connection.
Switch Connection os_connection