Fix for SSH connection loss after FFDC.
Resolves openbmc/openbmc-test-automation#391
Change-Id: I61f148fbfdb39fe410e2d0530c2a7a5be09ebddb
Signed-off-by: Rahul Maheshwari <rahulmaheshwari@in.ibm.com>
diff --git a/tests/test_time.robot b/tests/test_time.robot
index a1d5697..cb98cb9 100644
--- a/tests/test_time.robot
+++ b/tests/test_time.robot
@@ -10,9 +10,8 @@
Library OperatingSystem
Library DateTime
-Suite Setup Open Connection And Log In
-Suite Teardown Close All Connections
-Test Teardown Post Test Execution
+Test Setup Open Connection And Log In
+Test Teardown Post Test Case Execution
*** Variables ***
${SYSTEM_TIME_INVALID} 01/01/1969 00:00:00
@@ -398,11 +397,13 @@
... Should Be True ${host_diff_set_new} <= ${time_duration}
-Post Test Execution
- [Documentation] Perform operations after test execution. Capture FFDC
- ... in case of test case failure and sets default values for time mode
- ... and owner.
+Post Test Case Execution
+ [Documentation] Do the post test teardown.
+ ... 1. Capture FFDC on test failure.
+ ... 2. Sets defaults for time mode and owner.
+ ... 3. Close all open SSH connections.
- Run Keyword If Test Failed FFDC On Test Case Fail
+ FFDC On Test Case Fail
Set Time Owner BMC
Set Time Mode NTP
+ Close All Connections