Application core dumps files FFDC collection

Fix includes:
   - Lib keyword to enable core dump
   - Method keyword for SCP
   - Add entry in FFDC default method list
   - Enable core dump setting in __init__.txt

Resolves openbmc/openbmc-test-automation#373

Change-Id: I2a3885911fd361181ad664bddbf40e508bc03a5f
Signed-off-by: George Keishing <gkeishin@in.ibm.com>
diff --git a/lib/utils.robot b/lib/utils.robot
index 8a5da12..3e4063a 100755
--- a/lib/utils.robot
+++ b/lib/utils.robot
@@ -693,3 +693,10 @@
     Should Be Empty  ${stderr}
     [Return]  ${stdout}
 
+
+Enable Core Dump On BMC
+    [Documentation]  Enable core dump collection.
+    Open Connection And Log In
+    ${core_pattern}=  Execute Command On BMC
+    ...  echo '/tmp/core_%e.%p' | tee /proc/sys/kernel/core_pattern
+    Should Be Equal As Strings  ${core_pattern}  /tmp/core_%e.%p