Modified SDR script suite Setup

If REST is not supported, REST URI call to get
system URIs will be skipped.

Tested : Run robot ipmi/test_ipmi_sdr.robot

Change-Id: I4066f2b862c00b1c8153fb93c88b1e0677d0f948
Signed-off-by: Nagarjun B  <nagarjunb@ami.com>
diff --git a/ipmi/test_ipmi_sdr.robot b/ipmi/test_ipmi_sdr.robot
index 50fc064..9755cd1 100755
--- a/ipmi/test_ipmi_sdr.robot
+++ b/ipmi/test_ipmi_sdr.robot
@@ -411,9 +411,13 @@
     ${record_id}=  Get SDR Record ID
     Set Suite Variable  ${record_id}
 
-    ${uri_list}=  Read Properties  ${OPENBMC_BASE_URI}list
-    Set Suite Variable  ${SYSTEM_URI}  ${uri_list}
-    Log  ${uri_list}
+    # If REST is supported, then the uri_list will be returned.
+    ${resp}=  OpenBMC Get Request  ${OPENBMC_BASE_URI}
+    IF  '${resp.status_code}' == '${HTTP_OK}'
+      ${uri_list}=  Read Properties  ${OPENBMC_BASE_URI}list
+      Set Suite Variable  ${SYSTEM_URI}  ${uri_list}
+      Log  ${uri_list}
+    END
 
 
 Test Teardown Execution