Public bug reported:

phablet-test-run includes the following code to select a "default"
device to connect to:

if test -z $ANDROID_SERIAL; then
    ANDROID_SERIAL=$(adb devices -l | grep usb | cut -f 1 -d " " | head -n1)
fi
export ANDROID_SERIAL=$ANDROID_SERIAL

But this doesn't match the output of 'adb devices' for the ubuntu
emulator:

$ adb devices -l
List of devices attached 
emulator-5554          device product:occam model:Nexus_4 device:mako

$

I think phablet-test-run should just default to whichever device is the
first listed, regardless of whether it's connected over usb:

    ANDROID_SERIAL=$(adb devices -l | awk '/device .*product/ { print
$1; q }')

Or else, not set ANDROID_SERIAL at all by default, and pass through the
normal behavior of adb: succeed without warning if a single device is
connected, require $ANDROID_SERIAL or -s to be specified if there are
multiple devices present.

** Affects: phablet-tools
     Importance: Undecided
         Status: New

** Affects: phablet-tools (Ubuntu)
     Importance: Medium
         Status: Triaged

** Also affects: phablet-tools (Ubuntu)
   Importance: Undecided
       Status: New

** Changed in: phablet-tools (Ubuntu)
       Status: New => Triaged

** Changed in: phablet-tools (Ubuntu)
   Importance: Undecided => Medium

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1270497

Title:
  phablet-test-run doesn't work with emulators out of the box, looks for
  'usb' in adb

To manage notifications about this bug go to:
https://bugs.launchpad.net/phablet-tools/+bug/1270497/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to