Get CPU list from the Processor member list

Change-Id: I1ae61c919be333dc1fd22faa0cd2d085dcf0e8fe
Signed-off-by: George Keishing <gkeishin@in.ibm.com>
diff --git a/redfish/systems/test_systems_inventory.robot b/redfish/systems/test_systems_inventory.robot
index 8988d34..1b23246 100755
--- a/redfish/systems/test_systems_inventory.robot
+++ b/redfish/systems/test_systems_inventory.robot
@@ -35,13 +35,26 @@
 
     ${total_num_cores}=  Set Variable  ${0}
 
+    # Example of processor member list:
+    # /redfish/v1/Systems/system/Processors/cpu0
+    # /redfish/v1/Systems/system/Processors/cpu1
+    # /redfish/v1/Systems/system/Processors/gv100card0
+    # /redfish/v1/Systems/system/Processors/gv100card1
+    # /redfish/v1/Systems/system/Processors/gv100card2
+    # /redfish/v1/Systems/system/Processors/gv100card3
+    # /redfish/v1/Systems/system/Processors/gv100card4
+    # /redfish/v1/Systems/system/Processors/gv100card5
+
     ${processor_uris}=
     ...  Redfish_Utils.Get Member List  ${SYSTEM_BASE_URI}Processors
+
+    ${cpu_list}=  Get Matches  ${processor_uris}  *cpu*
+
     # Example of processor_uris:
     # /redfish/v1/Systems/system/Processors/cpu0
     # /redfish/v1/Systems/system/Processors/cpu1
 
-    :FOR  ${processor}  IN  @{processor_uris}
+    :FOR  ${processor}  IN  @{cpu_list}
         # If the status of the processor is "OK" and "Enabled", get its number
         # of cores.
         ${status}=  Redfish.Get Attribute  ${processor}  Status