Add FFDC support for AIX OS
Changes:
- Add support for AIX FFDC
- Typo fixes
Change-Id: I2488704ec6a610272555b4631d3fd7b9630bd3af
Signed-off-by: George Keishing <gkeishin@in.ibm.com>
diff --git a/lib/openbmc_ffdc_methods.robot b/lib/openbmc_ffdc_methods.robot
index 3382abb..b6cb128 100755
--- a/lib/openbmc_ffdc_methods.robot
+++ b/lib/openbmc_ffdc_methods.robot
@@ -344,6 +344,8 @@
# key_index The index into the FFDC_OS_<distro>_FILE dictionary.
# linux_distro Your OS's linux distro (e.g. "UBUNTU", "RHEL", etc).
+ Log To Console Collecting log for ${linux_distro}
+
@{ffdc_file_list}= Create List
@{cmd_list}= Get FFDC OS Distro Call ${key_index} ${linux_distro}
@@ -404,8 +406,8 @@
... AND
... Return From Keyword ${ffdc_file_list}
- ${stdout} ${stderr} ${rc}= OS Execute Command
- ... . /etc/os-release; echo $ID ignore_err=${0}
+ ${stdout}= OS Distro Type
+
Set Global Variable ${linux_distro} ${stdout}
Rpvars linux_distro
@@ -643,3 +645,17 @@
Run ${cmd_buf}
# The .binary file, which is generated by eSEL.pl, is of no use to us.
Remove File ${esel_file_path}.binary
+
+
+OS Distro Type
+ [Documentation] Determine the host partition distro type
+
+ ${stdout} ${stderr} ${rc}= OS Execute Command
+ ... . /etc/os-release; echo $ID ignore_err=${1}
+
+ Return From Keyword If ${rc} == ${0} ${stdout}
+
+ # If linux distro doesnt have os-release, check for uname.
+ ${stdout} ${stderr} ${rc}= OS Execute Command uname ignore_err=${0}
+
+ [Return] ${stdout}