Bug 1059079 - Up mozrunner timeout and add watch for new homescreen name; r=ahal r=mdas
authorKyle Machulis <kyle@nonpolynomial.com>
Wed, 27 Aug 2014 21:01:28 -0700
changeset 202461 43a4f13eeb31fdec58cac9514f7f529a856e3999
parent 202460 afe145022092be76d54376a28dd0ffa30eca5278
child 202462 c107147819ea9ef8dd53349805424a8da668044e
push id27399
push userryanvm@gmail.com
push dateFri, 29 Aug 2014 19:31:08 +0000
treeherdermozilla-central@2a354048f964 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersahal, mdas
bugs1059079
milestone34.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1059079 - Up mozrunner timeout and add watch for new homescreen name; r=ahal r=mdas
testing/mozbase/mozrunner/mozrunner/devices/emulator.py
--- a/testing/mozbase/mozrunner/mozrunner/devices/emulator.py
+++ b/testing/mozbase/mozrunner/mozrunner/devices/emulator.py
@@ -203,21 +203,21 @@ waitFor(
     def wait_for_homescreen(self, marionette):
         print 'waiting for homescreen...'
 
         marionette.set_context(marionette.CONTEXT_CONTENT)
         marionette.execute_async_script("""
 log('waiting for mozbrowserloadend');
 window.addEventListener('mozbrowserloadend', function loaded(aEvent) {
   log('received mozbrowserloadend for ' + aEvent.target.src);
-  if (aEvent.target.src.indexOf('ftu') != -1 || aEvent.target.src.indexOf('homescreen') != -1) {
+  if (aEvent.target.src.indexOf('ftu') != -1 || aEvent.target.src.indexOf('homescreen') != -1 || aEvent.target.src.indexOf('verticalhome') != -1) {
     window.removeEventListener('mozbrowserloadend', loaded);
     marionetteScriptFinished();
   }
-});""", script_timeout=120000)
+});""", script_timeout=300000)
         print '...done'
 
     def _get_telnet_response(self, command=None):
         output = []
         assert(self.telnet)
         if command is not None:
             self.telnet.write('%s\n' % command)
         while True: