Adding Channel checkstop through OS testcase

Inject Channel checkstop through OS and check if
the gard records are present after error injection.

Resolves openbmc/openbmc-test-automation#413

Change-Id: Idf223cce020a32836e0aa803cc5043a1dddd44c3
Signed-off-by: Sridevi Ramesh <sridevra@in.ibm.com>
diff --git a/lib/utils.robot b/lib/utils.robot
index 6cfb9d5..09f98f7 100755
--- a/lib/utils.robot
+++ b/lib/utils.robot
@@ -708,7 +708,7 @@
 
 Get Auto Reboot
     [Documentation]  Returns auto reboot setting.
-    ${setting}=  Read Attribute  ${HOST_SETTING}  auto_reboot
+    ${setting}=  Read Attribute  ${HOST_SETTINGS}  auto_reboot
     [Return]  ${setting}
 
 
@@ -719,7 +719,7 @@
 
     ${valueDict}=  Set Variable  ${setting}
     ${data}=  Create Dictionary  data=${valueDict}
-    Write Attribute  ${HOST_SETTING}  auto_reboot  data=${data}
+    Write Attribute  ${HOST_SETTINGS}  auto_reboot  data=${data}
     ${current_setting}=  Get Auto Reboot
     Should Be Equal  ${current_setting}  ${setting}
 
@@ -754,6 +754,7 @@
     Should Be Empty  ${stderr}
     [Return]  ${stdout}
 
+
 Enable Core Dump On BMC
     [Documentation]  Enable core dump collection.
     Open Connection And Log In
@@ -810,7 +811,8 @@
     ...  Wait for OS  ${os_host}  ${os_username}  ${os_password}
 
     Open Connection  ${os_host}
-    Login  ${os_username}  ${os_password}
+    ${resp}=  Login  ${os_username}  ${os_password}
+    [Return]  ${resp}
 
 Configure Initial Settings
     [Documentation]  Restore old IP and route.