Remove log deletion logic from FFDC
Note: Log collection is suppose to collect data from the
system and not configure to delete after data is collected.
The test case is responsible to decide if specific logs on
the system is to be cleared or not.
Change-Id: If9b616bd161ff58a24e1973b1559b51b0d807d9e
Signed-off-by: George Keishing <gkeishin@in.ibm.com>
diff --git a/lib/openbmc_ffdc.robot b/lib/openbmc_ffdc.robot
index f8c8580..de11927 100755
--- a/lib/openbmc_ffdc.robot
+++ b/lib/openbmc_ffdc.robot
@@ -46,10 +46,6 @@
... EX: 20160822041250932049:Test:Test case 1:PASS
... 20160822041250969913:Test:Test case 2:FAIL
... 3. Delete error logs and BMC dumps post FFDC collection.
- [Arguments] ${clean_up}=${TRUE}
- # Description of argument(s):
- # clean_up Boolean value indicating whether error logs and dumps should be deleted
- # on test failure after FFDC collection.
${OVERRIDE_FFDC_ON_TEST_CASE_FAIL}= Get Environment Variable OVERRIDE_FFDC_ON_TEST_CASE_FAIL 0
${OVERRIDE_FFDC_ON_TEST_CASE_FAIL}= Convert To Integer ${OVERRIDE_FFDC_ON_TEST_CASE_FAIL}
@@ -58,7 +54,3 @@
Run Keyword If '${TEST_STATUS}' == 'FAIL' FFDC
Log Test Case Status
-
- # Clean up error logs and BMC dumps.
- Run Keyword If '${TEST_STATUS}' == 'FAIL' and ${clean_up}
- ... Run Keywords Delete All Error Logs AND Delete All Dumps