Manual FFDC log collection
There is use case where a user needs to trigger FFDC collection
manually on demand. This would be helpful while doing developement
or manual test for specific use case and recreate logs.
The robot code is a wrapper to the existing FFDC infrastructure.
Resolves openbmc/openbmc-test-automation#134
Change-Id: I85f11e3f64ba94e17da1c8fbafc4fd29a87fef1f
Signed-off-by: George Keishing <gkeishin@in.ibm.com>
diff --git a/tools/myffdc.robot b/tools/myffdc.robot
new file mode 100755
index 0000000..dbc05e8
--- /dev/null
+++ b/tools/myffdc.robot
@@ -0,0 +1,34 @@
+*** Settings ***
+Documentation This module is for triggering data collection on demand
+... by manually running this robot suite.
+... Usage:
+... python -m robot -v OPENBMC_HOST:xx.xx.xx.xx myffdc.robot
+... Logs will be generated as shown below
+... logs
+... └── 20161020045522673810_Myffdc
+... └── 20161020045522673810_MyFFDCLogs
+... ├── 20161020045522673810_MyFFDCLogs
+... ├── 20161020045522673810_BMC_dmesg
+... ├── 20161020045522673810_BMC_inventory
+... ├── 20161020045522673810_BMC_journalctl.log
+... ├── 20161020045522673810_BMC_led
+... ├── 20161020045522673810_BMC_proc_list
+... ├── 20161020045522673810_BMC_record_log
+... ├── 20161020045522673810_BMC_sensor_list
+... └── 20161020045522673810_ffdc_report.txt
+
+Resource ../lib/openbmc_ffdc.robot
+
+Test Teardown Gather FFDC
+
+*** Test Cases ***
+
+My FFDC Logs
+ [Documentation] This test is needed to satisfy FFDC initial setup auto
+ ... variables required for FFDC collection.
+ Log To Console Manual FFDC collection
+
+** Keywords ***
+
+Gather FFDC
+ Run Keyword And Ignore Error Log FFDC If Test Case Failed