Bug 731349 - Minor bugs in DroidADB, DroidSUT abstractions r=ctalbert

This commit is contained in:
William Lachance 2012-02-28 11:44:45 -08:00
Родитель 481c9f4014
Коммит e9fa453cca
1 изменённых файлов: 3 добавлений и 2 удалений

Просмотреть файл

@ -39,6 +39,7 @@
from devicemanagerADB import DeviceManagerADB from devicemanagerADB import DeviceManagerADB
from devicemanagerSUT import DeviceManagerSUT from devicemanagerSUT import DeviceManagerSUT
import StringIO
class DroidMixin(object): class DroidMixin(object):
"""Mixin to extend DeviceManager with Android-specific functionality""" """Mixin to extend DeviceManager with Android-specific functionality"""
@ -59,7 +60,7 @@ class DroidMixin(object):
acmd = [ "am", "start", "-a", intent, "-W", "-n", "%s/.%s" % (app, activity)] acmd = [ "am", "start", "-a", intent, "-W", "-n", "%s/.%s" % (app, activity)]
if extra_args: if extra_args:
acmd.extend(["--es", "args", " ".join(args)]) acmd.extend(["--es", "args", " ".join(extra_args)])
if env: if env:
envCnt = 0 envCnt = 0
@ -69,7 +70,7 @@ class DroidMixin(object):
envCnt += 1 envCnt += 1
if url: if url:
acmd.extend(["-d", ''.join(['"', url, '"'])]) acmd.extend(["-d", ''.join(["'", url, "'"])])
# shell output not that interesting and debugging logs should already # shell output not that interesting and debugging logs should already
# show what's going on here... so just create an empty memory buffer # show what's going on here... so just create an empty memory buffer