Added support to only check location code info for ethernet component
Change-Id: I0eb134824bea9029b07fd60a14d1806a37876775
Signed-off-by: Rahul Maheshwari <rahulmaheshwari@in.ibm.com>
diff --git a/openpower/vpd/test_vpd.robot b/openpower/vpd/test_vpd.robot
index d5ba53f..02ab34f 100644
--- a/openpower/vpd/test_vpd.robot
+++ b/openpower/vpd/test_vpd.robot
@@ -58,6 +58,10 @@
Should Be Equal ${busctl_output[0].split('"')[1].strip('"')}
... ${VPD_DETAILS['${component}']['LocationCode']}
+ # Skip check for other VPD fields if its an ethernet component.
+ ${status}= Run Keyword And Return Status Should Contain ${component} ethernet
+ Return From Keyword If '${status}' == 'True'
+
# Verify PrettyName
${busctl_output}= BMC Execute Command
... ${CMD_INVENTORY_PREFIX}${component} xyz.openbmc_project.Inventory.Item PrettyName