No way to extend timeout period for wait_select_single()

Bug #1297780 reported by Richard Huddie
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Autopilot
Triaged
Medium
Unassigned

Bug Description

Currently there is no way to override the 10 sec timeout period for the wait_select_single() introspection method. An additional timeout parameter would enable the default to be overriden so that longer timeout periods can be used where needed.

This was required during writing an autopilot test for installing an app on the device. Here the download and install process can easily take longer than 10 seconds, so it would be useful to be able to extend this wait period accordingly.

Leo Arias (elopio)
Changed in autopilot:
status: New → Confirmed
Revision history for this message
Thomi Richards (thomir-deactivatedaccount) wrote :

I agree, there should be a public API to do this. Until we get around to adding one, here's a workaround you can do:

my_obj._poll_time = 30 # 30 seconds
my_obj.wait_select_single( ... )
my_obj._poll_time = 10 # remember to reset it again afterwards!

Changed in autopilot:
status: Confirmed → Triaged
importance: High → Medium
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.