forked from mirrors/gecko-dev
Bug 1454404 - Pass adb path from Android mach commands to test harnesses; r=jmaher
This commit is contained in:
parent
ce07cbb7d8
commit
ca43a015dc
9 changed files with 11 additions and 11 deletions
|
|
@ -410,7 +410,7 @@ class RemoteArgumentsParser(ReftestArgumentsParser):
|
|||
action="store",
|
||||
type=str,
|
||||
dest="adb_path",
|
||||
default="adb",
|
||||
default=None,
|
||||
help="path to adb")
|
||||
|
||||
self.add_argument("--deviceSerial",
|
||||
|
|
|
|||
|
|
@ -149,7 +149,7 @@ class RemoteReftest(RefTest):
|
|||
if options.log_tbpl_level == 'debug' or options.log_mach_level == 'debug':
|
||||
verbose = True
|
||||
print "set verbose!"
|
||||
self.device = ADBAndroid(adb=options.adb_path,
|
||||
self.device = ADBAndroid(adb=options.adb_path or 'adb',
|
||||
device=options.deviceSerial,
|
||||
test_root=options.remoteTestRoot,
|
||||
verbose=verbose)
|
||||
|
|
|
|||
|
|
@ -855,7 +855,7 @@ class AndroidArguments(ArgumentContainer):
|
|||
}],
|
||||
[["--adbpath"],
|
||||
{"dest": "adbPath",
|
||||
"default": "adb",
|
||||
"default": None,
|
||||
"help": "Path to adb binary.",
|
||||
"suppress": True,
|
||||
}],
|
||||
|
|
|
|||
|
|
@ -39,7 +39,7 @@ class GeckoviewOptions(OptionParser):
|
|||
help="serial ID of remote device to test")
|
||||
self.add_option("--adbpath",
|
||||
action="store", type="string", dest="adbPath",
|
||||
default="adb",
|
||||
default=None,
|
||||
help="Path to adb binary.")
|
||||
self.add_option("--remoteTestRoot",
|
||||
action="store", type="string", dest="remoteTestRoot",
|
||||
|
|
@ -56,7 +56,7 @@ class GeckoviewTestRunner:
|
|||
|
||||
def __init__(self, log, options):
|
||||
self.log = log
|
||||
self.device = ADBAndroid(adb=options.adbPath,
|
||||
self.device = ADBAndroid(adb=options.adbPath or 'adb',
|
||||
device=options.deviceSerial,
|
||||
test_root=options.remoteTestRoot)
|
||||
self.options = options
|
||||
|
|
|
|||
|
|
@ -47,7 +47,7 @@ class RobocopTestRunner(MochitestDesktop):
|
|||
verbose = False
|
||||
if options.log_tbpl_level == 'debug' or options.log_mach_level == 'debug':
|
||||
verbose = True
|
||||
self.device = ADBAndroid(adb=options.adbPath,
|
||||
self.device = ADBAndroid(adb=options.adbPath or 'adb',
|
||||
device=options.deviceSerial,
|
||||
test_root=options.remoteTestRoot,
|
||||
verbose=verbose)
|
||||
|
|
|
|||
|
|
@ -40,7 +40,7 @@ class MochiRemote(MochitestDesktop):
|
|||
self.chromePushed = False
|
||||
self.mozLogName = "moz.log"
|
||||
|
||||
self.device = ADBAndroid(adb=options.adbPath,
|
||||
self.device = ADBAndroid(adb=options.adbPath or 'adb',
|
||||
device=options.deviceSerial,
|
||||
test_root=options.remoteTestRoot,
|
||||
verbose=verbose)
|
||||
|
|
|
|||
|
|
@ -28,7 +28,7 @@ class RemoteCPPUnitTests(cppunittests.CPPUnitTests):
|
|||
def __init__(self, options, progs):
|
||||
cppunittests.CPPUnitTests.__init__(self)
|
||||
self.options = options
|
||||
self.device = ADBAndroid(adb=options.adb_path,
|
||||
self.device = ADBAndroid(adb=options.adb_path or 'adb',
|
||||
device=options.device_serial,
|
||||
test_root=options.remote_test_root)
|
||||
self.remote_test_root = posixpath.join(self.device.test_root, "cppunittests")
|
||||
|
|
@ -175,7 +175,7 @@ class RemoteCPPUnittestOptions(cppunittests.CPPUnittestOptions):
|
|||
self.add_option("--adbPath", action="store",
|
||||
type="string", dest="adb_path",
|
||||
help="Path to adb")
|
||||
defaults["adb_path"] = "adb"
|
||||
defaults["adb_path"] = None
|
||||
|
||||
self.add_option("--noSetup", action="store_false",
|
||||
dest="setup",
|
||||
|
|
|
|||
|
|
@ -241,7 +241,7 @@ class XPCShellRemote(xpcshell.XPCShellTests, object):
|
|||
verbose = False
|
||||
if options['log_tbpl_level'] == 'debug' or options['log_mach_level'] == 'debug':
|
||||
verbose = True
|
||||
self.device = ADBAndroid(adb=options['adbPath'],
|
||||
self.device = ADBAndroid(adb=options['adbPath'] or 'adb',
|
||||
device=options['deviceSerial'],
|
||||
test_root=options['remoteTestRoot'],
|
||||
verbose=verbose)
|
||||
|
|
|
|||
|
|
@ -147,7 +147,7 @@ def add_remote_arguments(parser):
|
|||
help="serial ID of device")
|
||||
|
||||
parser.add_argument("--adbPath", action="store", type=str, dest="adbPath",
|
||||
default="adb",
|
||||
default=None,
|
||||
help="Path to adb")
|
||||
|
||||
parser.add_argument("--noSetup", action="store_false", dest="setup", default=True,
|
||||
|
|
|
|||
Loading…
Reference in a new issue