Add delay before connecting to remote RPC on reboot.

It is safer to delay seconds there is a gap between network ready and sshd
ready. There is a possibility that network is OK (ping success) but sshd is
still setting up and causes the later RPC connection failed.

BUG=chromium-os:19710
TEST=run_remote_tests.sh --remote=$REMOTE_IP -a \
     "servo_vid=0x18d1 servo_pid=0x5001" firmware_DevMode
Ran the test for 1 day and no failure.

Change-Id: Ied9f598be2247eab0ab6607232b73bef7f736e9a
Reviewed-on: https://gerrit.chromium.org/gerrit/8118
Commit-Ready: Tom Wai-Hong Tam <waihong@chromium.org>
Reviewed-by: Tom Wai-Hong Tam <waihong@chromium.org>
Tested-by: Tom Wai-Hong Tam <waihong@chromium.org>
diff --git a/server/cros/servo_test.py b/server/cros/servo_test.py
index c97a5cd..4a4c005 100644
--- a/server/cros/servo_test.py
+++ b/server/cros/servo_test.py
@@ -250,6 +250,10 @@
         # Relaunch remote clients.
         for name, info in self._remote_infos.iteritems():
             if info['used']:
+                # This 5s delay to ensure sshd launched after network is up.
+                # TODO(waihong) Investigate pinging port via netcat or nmap
+                # to interrogate client for when sshd has launched.
+                time.sleep(5)
                 self.launch_client(info)
                 logging.info('Server: Relaunched remote %s.' % name)