Don't collect PEL logs on x86 machines
Platform Event Log (PEL) extension is specific for the
OpenPower machines.
Signed-off-by: Konstantin Aladyshev <aladyshev22@gmail.com>
Change-Id: I1aa329b5805fc66b6df4ad3863f5350d8f1ce664
diff --git a/lib/openbmc_ffdc_list.py b/lib/openbmc_ffdc_list.py
index f90f58e..ad64990 100755
--- a/lib/openbmc_ffdc_list.py
+++ b/lib/openbmc_ffdc_list.py
@@ -5,6 +5,8 @@
# commands and files to be collected as a part
# of the test case failure.
"""
+from robot.libraries.BuiltIn import BuiltIn
+
# -------------------
# FFDC default list
# -------------------
@@ -154,6 +156,14 @@
'Redfish Log': 'Enumerate Redfish Resources',
},
}
+
+platform_arch_type = BuiltIn().get_variable_value("${PLATFORM_ARCH_TYPE}", default="power")
+# Filter the logs based on platform type.
+if platform_arch_type == "x86":
+ del FFDC_BMC_FILE['BMC FILES']['PEL_logs_list.json']
+ del FFDC_BMC_FILE['BMC FILES']['PEL_logs_display.json']
+ del FFDC_METHOD_CALL['BMC LOGS']['PEL Files']
+
# -----------------------------------------------------------------
# base class for FFDC default list