System test utility keywords

Resolves openbmc/openbmc-test-automation#542

Change-Id: I6aac2b9e44fa75277844906cff09660d2917dfb1
Signed-off-by: George Keishing <gkeishin@in.ibm.com>
diff --git a/syslib/utils_os.robot b/syslib/utils_os.robot
new file mode 100755
index 0000000..9bbb37a
--- /dev/null
+++ b/syslib/utils_os.robot
@@ -0,0 +1,32 @@
+*** Settings ***
+Documentation      Keywords for system related test. This is a subset of the
+...                utils.robot. This resource file keywords  is specifically
+...                define for system test use cases.
+
+Resource           ../lib/utils.robot
+
+*** Variables ***
+
+*** Keywords ***
+
+Execute Command On OS
+    [Documentation]  Execute given command on OS and return output.
+    [Arguments]  ${command}
+    ${stdout}  ${stderr}=  Execute Command  ${command}  return_stderr=True
+    Should Be Empty  ${stderr}
+    [Return]  ${stdout}
+
+
+Login To OS
+    [Documentation]  Login to OS Host.
+    [Arguments]  ${os_host}=${OS_HOST}  ${os_username}=${OS_USERNAME}
+    ...          ${os_password}=${OS_PASSWORD}
+    # Desription of arguments:
+    # ${os_host} IP address of the OS Host.
+    # ${os_username}  OS Host Login user name.
+    # ${os_password}  OS Host Login passwrd.
+
+    Open Connection  ${os_host}
+    ${resp}=  Login  ${os_username}  ${os_password}
+    [Return]  ${resp}
+