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

Gathering Logs fails in android-win CI because of ghost emulators

    XMLWordPrintableJSON

Details

    • Test
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • None
    • cordova-medic
    • Windows 8.1

    Description

      Gathering logs fails for Android when there is more than one device connected. That's fine, but for some reason a number of "ghost" emulators are hanging around and causing adb devices to come up with more than one connected emulator. The emulators are labelled as "host" rather than "device" in the output and I have no idea what that is referring to (adb docs make no mention of that as a possible value). Task manager confirms that no emulators are actually running. This is either related to appium, CB-10510, or was always an issue and is just now showing up because we stopped killing adb in medic-kill. Running adb kill-server and adb start-server clears the host entries, so that might be the quick fix.

      Log Output for reference:

      [MEDIC LOG Mon, 22 Feb 2016 07:30:05 GMT] running:
      [MEDIC LOG Mon, 22 Feb 2016 07:30:05 GMT]     adb devices
      List of devices attached
      emulator-5554	device
      emulator-5572	host
      emulator-5666	host
      emulator-5668	host
      emulator-5562	host
      emulator-5656	host
      
      [MEDIC LOG Mon, 22 Feb 2016 07:30:05 GMT] FATAL: there must be exactly one emulator/device attached
      

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: