Support OVERRIDE_FFDC_ON_TEST_CASE_FAIL

Allow users to override the automatic FFDC_ON_TEST_CASE_FAIL by setting
environment variable OVERRIDE_FFDC_ON_TEST_CASE_FAIL.  This greatly improves
efficiency when testing test code.

Change-Id: I774d2e8f9999e8defb99b72852e05e08e9599c42
Signed-off-by: Michael Walsh <micwalsh@us.ibm.com>
diff --git a/lib/openbmc_ffdc.robot b/lib/openbmc_ffdc.robot
index 8b6ce33..2c3dbb5 100755
--- a/lib/openbmc_ffdc.robot
+++ b/lib/openbmc_ffdc.robot
@@ -47,6 +47,10 @@
     ...                      20160822041250969913:Test:Test case 2:FAIL
     ...               3. Delete error logs and BMC dumps post FFDC collection.
 
+    ${OVERRIDE_FFDC_ON_TEST_CASE_FAIL}=  Get Variable Value  ${OVERRIDE_FFDC_ON_TEST_CASE_FAIL}  0
+    ${OVERRIDE_FFDC_ON_TEST_CASE_FAIL}=  Convert To Integer  ${OVERRIDE_FFDC_ON_TEST_CASE_FAIL}
+    Return From Keyword If  '${OVERRIDE_FFDC_ON_TEST_CASE_FAIL}'
+
     Run Keyword If  '${TEST_STATUS}' == 'FAIL'  FFDC
 
     Log Test Case Status