Enable Qemu test execution
This change addresses the following
- user input SSH and HTTPS port
- consolidate SSH connections in lib
- fix obsolete codes
- update README instructions
Resolves openbmc/openbmc-test-automation#41
Change-Id: I06dd132fb745ebbf035cb0fc583b46542448d126
Signed-off-by: George Keishing <gkeishin@in.ibm.com>
diff --git a/tests/test_ac_cycles.robot b/tests/test_ac_cycles.robot
index 927a354..9cb7251 100644
--- a/tests/test_ac_cycles.robot
+++ b/tests/test_ac_cycles.robot
@@ -2,24 +2,24 @@
Documentation This testsuite is for testing file corruption on hard power cycle
-Resource ../lib/pdu/pdu.robot
-Resource ../lib/utils.robot
+Resource ../lib/pdu/pdu.robot
+Resource ../lib/utils.robot
+Resource ../lib/connection_client.robot
-Library SSHLibrary
+Suite Setup Open Connection And Log In
+Suite Teardown Close All Connections
*** Test Cases ***
Test openbmc buster
[Tags] reboot_tests
- Open Connection And Log In
${output}= Execute Command find /var/lib -type f |xargs -n 1 touch
PDU Power Cycle
Wait For Host To Ping ${OPENBMC_HOST}
Sleep 1min
+
+ # Need to re connect the session
Open Connection And Log In
${stdout} ${stderr} ${rc}= Execute Command echo "hello world" return_stderr=True return_rc=True
Should Be Equal As Integers ${rc} ${0}
*** Keywords ***
-Open Connection And Log In
- Open connection ${OPENBMC_HOST}
- Login ${OPENBMC_USERNAME} ${OPENBMC_PASSWORD}