Add sleep time before suspend
BUG:chromium:589287
TEST=Tested against lab host
Change-Id: I6344cca0d77dede03b6b085255a40116069d8adf
Reviewed-on: https://chromium-review.googlesource.com/1286276
Commit-Ready: ChromeOS CL Exonerator Bot <chromiumos-cl-exonerator@appspot.gserviceaccount.com>
Tested-by: Prasanthi Gangishetty <pgangishetty@chromium.org>
Reviewed-by: Kalin Stoyanov <kalin@chromium.org>
diff --git a/server/site_tests/platform_InternalDisplay/platform_InternalDisplay.py b/server/site_tests/platform_InternalDisplay/platform_InternalDisplay.py
index d96adb0..08806c5 100644
--- a/server/site_tests/platform_InternalDisplay/platform_InternalDisplay.py
+++ b/server/site_tests/platform_InternalDisplay/platform_InternalDisplay.py
@@ -3,6 +3,7 @@
# found in the LICENSE file.
import logging, threading
+import time
from autotest_lib.server import test
from autotest_lib.client.common_lib import error
@@ -11,6 +12,7 @@
_LONG_TIMEOUT = 120
_DO_NOT_RUN_ON_TYPE = ['CHROMEBOX', 'CHROMEBIT', 'OTHER']
_DO_NOT_RUN_ON_BOARD = ['monroe']
+_SLEEP_BEFORE_SUSPEND_SEC = 5
class platform_InternalDisplay(test.test):
version = 1
@@ -45,6 +47,7 @@
if self.host.has_internal_display() is not 'internal_display':
raise error.TestFail('Internal display is missing after reboot.')
+ time.sleep(_SLEEP_BEFORE_SUSPEND_SEC)
boot_id = self.run_suspend()
logging.info('DUT suspended')
self.host.test_wait_for_resume(boot_id, _LONG_TIMEOUT)