Add missing adbOptions in runhat.

One of the adb commands in runhat was not using the adbOptions and would
fail if specifying a single serial device with multiple connected devices.

Change-Id: I804a6fccc51090cdc78dc2af76bbc0a24d843e3d
This commit is contained in:
Christopher Ferris 2013-05-20 16:30:10 -07:00
parent b063aac67e
commit 764b4f80fd
1 changed files with 1 additions and 1 deletions

View File

@ -1060,7 +1060,7 @@ function runhat()
fi
# issue "am" command to cause the hprof dump
local sdcard=$(adb shell echo -n '$EXTERNAL_STORAGE')
local sdcard=$(adb ${adbOptions} shell echo -n '$EXTERNAL_STORAGE')
local devFile=$sdcard/hprof-$targetPid
#local devFile=/data/local/hprof-$targetPid
echo "Poking $targetPid and waiting for data..."