Uploaded image for project: 'Apache Cordova'
  1. Apache Cordova
  2. CB-10510

medic-run doesn't check to make sure the emulator started

    Details

    • Type: Test
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: cordova-medic
    • Environment:

      Windows, Android emulator

      Description

      Medic doesn't check to see if the emulator actually starts when invoking cordova run android. Instead, it starts polling cordova-vm immediately. This might also be considered a bug in cordova-android's run script, which just seems to hang if the emulator doesn't start. Example build is here:
      https://ci.apache.org/builders/cordova-android-win/builds/1488/steps/running-tests/logs/stdio

      And adb logs are here:
      https://ci.apache.org/builders/cordova-android-win/builds/1488/steps/gathering-logs/logs/stdio
      ====
      Log:
      C:\Users\buildbot\slaves\apache\cordova-android-win\mobilespec>node C:\Users\buildbot\slaves\apache\cordova-android-win\cordova-cli\bin\cordova run --emulator android – --gradle
      ANDROID_HOME=C:\Android\android-sdk
      JAVA_HOME=C:\Program Files (x86)\Java\jdk1.7.0_55
      No emulator specified, defaulting to Galaxy_Nexus
      Waiting for emulator...
      WARNING: init: Missing WGL extension WGL_ARB_make_current_read
      emulator: warning: opening audio output failed

      emulator: emulator window was out of view and was recentered

      emulator: UpdateChecker: skipped version check
      Booting up emulator (this may take a while)........................................query failed for mobilespec_results

      { [Error: connect ETIMEDOUT] code: 'ETIMEDOUT', errno: 'ETIMEDOUT', syscall: 'connect' }

      .....................................query failed for mobilespec_results

      { [Error: connect ETIMEDOUT] code: 'ETIMEDOUT', errno: 'ETIMEDOUT', syscall: 'connect' }

      ..................query failed for mobilespec_results

      { [Error: connect ETIMEDOUT] code: 'ETIMEDOUT', errno: 'ETIMEDOUT', syscall: 'connect' }

      ....................................................................................................query failed for mobilespec_results

      { [Error: connect ETIMEDOUT] code: 'ETIMEDOUT', errno: 'ETIMEDOUT', syscall: 'connect' }

      ...................................................................................query failed for mobilespec_results

      { [Error: connect ETIMEDOUT] code: 'ETIMEDOUT', errno: 'ETIMEDOUT', syscall: 'connect' }

      .......................................................didn't get test results: timed out
      program finished with exit code 1
      elapsedTime=1150.659000

        Attachments

          Activity

            People

            • Assignee:
              riknoll Richard B Knoll
              Reporter:
              riknoll Richard B Knoll
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: