[autotest] Add a timeout in fastboot reboot command and ignore timeout error

BUG=b:27624929
TEST=local run
import common
from autotest_lib.server import hosts
host = hosts.create_host('100.96.51.111')
host.ensure_adb_mode()

Change-Id: I24631fd5cb687dd98bb4e64479f8258e8e35404a
Reviewed-on: https://chromium-review.googlesource.com/334297
Trybot-Ready: Dan Shi <dshi@google.com>
Tested-by: Dan Shi <dshi@google.com>
Reviewed-by: Dan Shi <dshi@google.com>
Commit-Queue: Dan Shi <dshi@google.com>
diff --git a/server/hosts/adb_host.py b/server/hosts/adb_host.py
index 3e245bf..6b1fffc 100644
--- a/server/hosts/adb_host.py
+++ b/server/hosts/adb_host.py
@@ -990,7 +990,9 @@
         """
         if self.is_up():
             return
-        self.fastboot_run('reboot')
+        # Ignore timeout error to allow `fastboot reboot` to fail quietly and
+        # check if the device is in adb mode.
+        self.fastboot_run('reboot', timeout=timeout, ignore_timeout=True)
         if not self.wait_up(timeout=timeout):
             raise error.AutoservError(
                     'The device failed to reboot into adb mode.')