=== modified file 'lava_dispatcher/actions/boot_control.py'
@@ -46,10 +46,14 @@
parameters_schema['properties']['adb_check'] = {
'default': False, 'optional': True
}
+ parameters_schema['properties']['wait_for_home_screen'] = {
+ 'default': False, 'optional': True
+ }
- def run(self, options=[], adb_check=False):
+ def run(self, options=[], adb_check=False, wait_for_home_screen=True):
client = self.client
client.target_device.boot_options = options
+ client.config.android_wait_for_home_screen = wait_for_home_screen
try:
client.boot_linaro_android_image(
adb_check=adb_check)
=== modified file 'lava_dispatcher/client/base.py'
@@ -569,9 +569,10 @@
raise
else:
logging.info("Skip raising exception on the home screen has not displayed for health check jobs")
-
+ # When disablesuspend executes it waits for home screen unless
+ # --no-wait is passed.
session.run(
- '/system/bin/disablesuspend.sh',
+ '/system/bin/disablesuspend.sh --no-wait',
timeout=self.config.disablesuspend_timeout)
def _enable_network(self):