testrunner: Allow spaces in instrumentation arguments and remove check for test
app presence.
This commit is contained in:
@@ -275,7 +275,7 @@ class AdbInterface:
|
|||||||
(self.DEVICE_TRACE_DIR, instrumentation_path.split(".")[-1]))
|
(self.DEVICE_TRACE_DIR, instrumentation_path.split(".")[-1]))
|
||||||
|
|
||||||
for key, value in instrumentation_args.items():
|
for key, value in instrumentation_args.items():
|
||||||
command_string += " -e %s %s" % (key, value)
|
command_string += " -e %s '%s'" % (key, value)
|
||||||
if raw_mode:
|
if raw_mode:
|
||||||
command_string += " -r"
|
command_string += " -r"
|
||||||
command_string += " -w %s" % instrumentation_path
|
command_string += " -w %s" % instrumentation_path
|
||||||
|
|||||||
@@ -165,12 +165,5 @@ def GetTestAppPath():
|
|||||||
|
|
||||||
Returns:
|
Returns:
|
||||||
The absolute file path of the Android test app build directory.
|
The absolute file path of the Android test app build directory.
|
||||||
|
|
||||||
Raises:
|
|
||||||
AbortError: if Android host java library directory could not be found.
|
|
||||||
"""
|
"""
|
||||||
path = os.path.join(GetProductOut(), "data", "app")
|
return os.path.join(GetProductOut(), "data", "app")
|
||||||
if not os.path.exists(path):
|
|
||||||
logger.Log("Error: app path could not be found %s" % path)
|
|
||||||
raise errors.AbortError
|
|
||||||
return path
|
|
||||||
|
|||||||
Reference in New Issue
Block a user