зеркало из https://github.com/mozilla/pjs.git
Bug 731349 - Minor bugs in DroidADB, DroidSUT abstractions r=ctalbert
This commit is contained in:
Родитель
481c9f4014
Коммит
e9fa453cca
|
@ -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
|
||||||
|
|
Загрузка…
Ссылка в новой задаче