blob: cf90cc4f0675260d2d35188420c5202525a43e63 [file] [log] [blame]
George Keishing4346a412016-07-19 11:26:49 -05001*** Settings ***
George Keishing69e6f712016-09-12 06:30:09 -05002Documentation This module is for data collection on test case failure
3... for openbmc systems. Collects data with default name
4... ffdc_report.txt under directory logs/testSuite/testName/
5... on failure.
6... FFDC logging sample layout:
7... logs
8... ├── 20160909102538035251_TestWarmreset
9... │   └── 20160909102538035251_TestWarmResetviaREST
Gunnar Mills50070fa2016-11-14 11:17:30 -060010... │   ├── 20160909102538035251_BMC_journalctl.txt
11... │   ├── 20160909102538035251_BMC_proc_list.txt
12... │   ├── 20160909102538035251_BMC_dmesg.txt
13... │   ├── 20160909102538035251_BMC_inventory.txt
14... │   ├── 20160909102538035251_BMC_led.txt
15... │   ├── 20160909102538035251_BMC_record_log.txt
16... │   ├── 20160909102538035251_BMC_sensor_list.txt
Gunnar Millsaca140d2016-10-26 13:05:10 -050017... │   ├── 20160909102538035251_BMC_general.txt
Gunnar Mills50070fa2016-11-14 11:17:30 -060018... │   ├── 20160909102538035251_OS_dmesg.txt
19... │   ├── 20160909102538035251_OS_msglog.txt
20... │   ├── 20160909102538035251_OS_cpufrequency.txt
21... │   ├── 20160909102538035251_OS_boot.txt
22... │   ├── 20160909102538035251_OS_isusb.txt
23... │   ├── 20160909102538035251_OS_kern.txt
24... │   ├── 20160909102538035251_OS_authlog.txt
25... │   ├── 20160909102538035251_OS_syslog.txt
26... │   ├── 20160909102538035251_OS_info.txt
27... │   ├── 20160909102538035251_OS_rsct.txt
28... │   └── 20160909102538035251_OS_secure.txt
George Keishing69e6f712016-09-12 06:30:09 -050029... └── test_history.txt
George Keishing4346a412016-07-19 11:26:49 -050030
George Keishing69e6f712016-09-12 06:30:09 -050031Resource openbmc_ffdc_methods.robot
32Resource openbmc_ffdc_utils.robot
Michael Walsh769c2a12016-12-13 15:45:17 -060033Library openbmc_ffdc.py
George Keishing4346a412016-07-19 11:26:49 -050034
35*** Keywords ***
36
Gunnar Millseac1af22016-11-14 15:30:09 -060037FFDC On Test Case Fail
George Keishing4346a412016-07-19 11:26:49 -050038 [Documentation] Generic FFDC entry point. Place holder to hook in
George Keishing69e6f712016-09-12 06:30:09 -050039 ... other data collection methods
40 ... 1. Collect Logs if test fails
41 ... 2. Added Test execution history logging
42 ... By default this will log Test status PASS/FAIL format
43 ... EX: 20160822041250932049:Test:Test case 1:PASS
44 ... 20160822041250969913:Test:Test case 2:FAIL
George Keishing4346a412016-07-19 11:26:49 -050045
George Keishing69e6f712016-09-12 06:30:09 -050046 Run Keyword If '${TEST_STATUS}' == 'FAIL'
Gunnar Millseac1af22016-11-14 15:30:09 -060047 ... FFDC
George Keishing69e6f712016-09-12 06:30:09 -050048
49 Log Test Case Status