Adjust regexes for new robot version

Keep newer versions of robot from trying to interpret the following as a
dictionary entry reference.

${component_name}[0-9]

Should be:

${component_name}\[0-9]

Change-Id: If4d67c9c7147bd27c9b9ca133bb93dd729321fa1
Signed-off-by: Michael Walsh <micwalsh@us.ibm.com>
diff --git a/tests/ipmi/test_fru.robot b/tests/ipmi/test_fru.robot
index ed8cc56..d9583ff 100644
--- a/tests/ipmi/test_fru.robot
+++ b/tests/ipmi/test_fru.robot
@@ -43,7 +43,7 @@
     # From the inventory_uris, select just the ones for the component of
     # interest.
     ${component_uris}=  Get Matches  ${inventory_uris}
-    ...  regexp=^.*[0-9a-z_].${component_name}[0-9]*$
+    ...  regexp=^.*[0-9a-z_].${component_name}\[0-9]*$
 
     # Get the component information for each record.
     ${component_frus}=  Create List
@@ -123,7 +123,7 @@
     #     /xyz/openbmc_project/inventory/system/chassis/motherboard/cpu0
     #     /xyz/openbmc_project/inventory/system/chassis/motherboard/cpu1
     ${component_uris}=  Get Matches  ${inventory_uris}
-    ...  regexp=^.*[0-9a-z_].${component_name}[0-9]*$
+    ...  regexp=^.*[0-9a-z_].${component_name}\[0-9]*$
 
     : FOR  ${uri}  IN  @{component_uris}
     \  ${sub_component}=  Fetch From Right  ${uri}  /
diff --git a/tests/ipmi/test_sdr.robot b/tests/ipmi/test_sdr.robot
index b70d0d1..cd6ed0f 100755
--- a/tests/ipmi/test_sdr.robot
+++ b/tests/ipmi/test_sdr.robot
@@ -130,7 +130,7 @@
     # uri_list          URI list.
 
     ${component_uris}=  Get Matches  ${uri_list}
-    ...  regexp=^.*[0-9a-z_].${component_name}[0-9]*$
+    ...  regexp=^.*[0-9a-z_].${component_name}\[0-9]*$
     [Return]  ${component_uris}
 
 
diff --git a/tests/test_sensors.robot b/tests/test_sensors.robot
index 05840c6..3e99250 100644
--- a/tests/test_sensors.robot
+++ b/tests/test_sensors.robot
@@ -51,7 +51,7 @@
     [Documentation]  Get the system component.
     [Arguments]    ${type}
     ${list}=    Get Dictionary Keys    ${SYSTEM_INFO}
-    ${resp}=    Get Matches    ${list}    regexp=^.*[0-9a-z_].${type}[0-9]*$
+    ${resp}=    Get Matches    ${list}    regexp=^.*[0-9a-z_].${type}\[0-9]*$
     ${url}=    Get From List    ${resp}    0
     [Return]    ${url}