Fix for connection reset by peer error during BMC reboot.

Connection reset by peer error means an immediate dropping
of the connection. This error is expected and should be
ignored.

Resolves openbmc/openbmc-test-automation#509

Change-Id: Ieca97a97e8529440fc4fe7600dab81745fffb0c1
Signed-off-by: Rahul Maheshwari <rahulmaheshwari@in.ibm.com>
diff --git a/lib/state_manager.robot b/lib/state_manager.robot
index ce303a2..59da9ff 100755
--- a/lib/state_manager.robot
+++ b/lib/state_manager.robot
@@ -162,7 +162,8 @@
 Initiate BMC Reboot
     [Documentation]  Initiate BMC reboot.
     ${args}=  Create Dictionary   data=${BMC_REBOOT_TRANS}
-    Write Attribute
+
+    Run Keyword And Ignore Error  Write Attribute
     ...  ${BMC_STATE_URI}  RequestedBMCTransition   data=${args}
 
     ${session_active}=   Check If BMC Reboot Is Initiated