GPU inventory skip for FRU validation

The new implementation for GPU inventory added the FRU field
property. However the field can be ignored for now because it
is not qualified FRUs.

Resolves  openbmc/openbmc-test-automation#1281

Change-Id: I72152cfbeb89b1956ee60cc652f20c27a8c2d43a
Signed-off-by: George Keishing <gkeishin@in.ibm.com>
diff --git a/tests/test_inventory.robot b/tests/test_inventory.robot
index 38a62ea..1ba6152 100644
--- a/tests/test_inventory.robot
+++ b/tests/test_inventory.robot
@@ -8,6 +8,7 @@
 Resource          ../lib/list_utils.robot
 Resource          ../lib/boot_utils.robot
 Library           ../lib/utilities.py
+Library            Collections
 
 Variables         ../data/variables.py
 Variables         ../data/inventory.py
@@ -554,6 +555,36 @@
     \  Run Keyword If  '${status}' == '${True}'
     ...  Append To List  ${fru_list}  ${fru_uri}
 
+    ${fru_valid_list}=  Filter GPU FRU Entries  ${fru_list}
+
+    [Return]  ${fru_valid_list}
+
+
+Filter GPU FRU Entries
+    [Documentation]  Remove GPU entries from FRU list and return the result.
+    [Arguments]  ${fru_list}
+
+    # Description of arguments:
+    # fru_list  List of FRU system inventory URIs.
+    # Example FRUs list:
+    # [u'/xyz/openbmc_project/inventory/system/chassis/motherboard/cpu0',
+    #  u'/xyz/openbmc_project/inventory/system/chassis/motherboard/cpu1',
+    #  u'/xyz/openbmc_project/inventory/system/chassis/motherboard/dimm0',
+    #  u'/xyz/openbmc_project/inventory/system/chassis/motherboard/dimm1',
+    #  u'/xyz/openbmc_project/inventory/system/chassis/motherboard/gv100card0',
+    #  u'/xyz/openbmc_project/inventory/system/chassis/motherboard/gv100card1',
+    #  u'/xyz/openbmc_project/inventory/system/chassis/motherboard/gv100card3',
+    #  u'/xyz/openbmc_project/inventory/system/chassis/motherboard/gv100card4']
+
+    # Example of the matched GPU FRUs entries:
+    # [u'/xyz/openbmc_project/inventory/system/chassis/motherboard/gv100card0',
+    #  u'/xyz/openbmc_project/inventory/system/chassis/motherboard/gv100card1',
+    #  u'/xyz/openbmc_project/inventory/system/chassis/motherboard/gv100card3',
+    #  u'/xyz/openbmc_project/inventory/system/chassis/motherboard/gv100card4']
+
+    ${gpu_matches}=  Get Matches  ${fru_list}  *gv*
+
+    Remove Values From List  ${fru_list}  @{gpu_matches}
     [Return]  ${fru_list}