Added new test cast for os install and bootme
Added error checking to "Install HTX On Redhat"
Change-Id: Ieeafb5a04ad466cfabeaf72d58274432112116db
Signed-off-by: Joy Onyerikwu <onyekachukwu.joy.onyerikwu@ibm.com>
diff --git a/syslib/utils_install.robot b/syslib/utils_install.robot
index 4f1d37e..cb71dd3 100755
--- a/syslib/utils_install.robot
+++ b/syslib/utils_install.robot
@@ -78,9 +78,11 @@
# (e.g. http://server.com/projects/htx_package.rpm )
- OS Execute Command wget ${htx_rpm} ignore_err=1
+ ${stdout} ${stderr} ${rc} OS Execute Command
+ ... wget ${htx_rpm} ignore_err=1
+ Should Not Contain ${stderr} ERROR
@{str}= Split String From Right ${htx_rpm} / 1
- SSHLibrary.File Should Exist ${str[1]}
+
# Remove the old version.
OS Execute Command rpm -e `rpm -qa | grep htx` ignore_err=1
OS Execute Command rpm -Uvh ${str[1]}
diff --git a/syslib/utils_os.robot b/syslib/utils_os.robot
index 942d26e..ac61680 100755
--- a/syslib/utils_os.robot
+++ b/syslib/utils_os.robot
@@ -426,6 +426,10 @@
Check HTX Run Status
[Documentation] Get HTX exerciser status and check for error.
+ [Arguments] ${sleep_time}=${EMPTY}
+
+ # Description of argument(s):
+ # sleep_time The amount of time to sleep after checking status.
Rprint Timen Check HTX mdt Status and error.
${htx_status}= Execute Command On OS
@@ -438,6 +442,10 @@
Should Contain ${htx_errlog} file </tmp/htxerr> is empty
... msg=HTX geterrorlog was not empty.
+ Return From Keyword If ${sleep_time} == ${EMPTY}
+
+ Run Key U Sleep \ ${sleep-time}
+
Shutdown HTX Exerciser
[Documentation] Shut down HTX exerciser run.