Bug 821012 - Add busybox args to b2g reftest and mochitest harnesses, r=jgriffin, DONTBUILD a=NPOTB,test-only

This commit is contained in:
Andrew Halberstadt 2013-01-08 10:07:57 -05:00
Родитель f0fede68fc
Коммит 51ea613684
2 изменённых файлов: 12 добавлений и 0 удалений

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

@ -109,6 +109,10 @@ class B2GOptions(ReftestOptions):
type="string", dest="logcat_dir",
help="directory to store logcat dump files")
defaults["logcat_dir"] = None
self.add_option('--busybox', action='store',
type='string', dest='busybox',
help="Path to busybox binary to install on device")
defaults['busybox'] = None
defaults["remoteTestRoot"] = "/data/local/tests"
defaults["logFile"] = "reftest.log"
defaults["autorun"] = True
@ -484,6 +488,8 @@ def main(args=sys.argv[1:]):
kwargs['gecko_path'] = options.geckoPath
if options.logcat_dir:
kwargs['logcat_dir'] = options.logcat_dir
if options.busybox:
kwargs['busybox'] = options.busybox
if options.emulator_res:
kwargs['emulator_res'] = options.emulator_res
if options.b2gPath:

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

@ -102,6 +102,10 @@ class B2GOptions(MochitestOptions):
type="string", dest="logcat_dir",
help="directory to store logcat dump files")
defaults["logcat_dir"] = None
self.add_option('--busybox', action='store',
type='string', dest='busybox',
help="Path to busybox binary to install on device")
defaults['busybox'] = None
defaults["remoteTestRoot"] = "/data/local/tests"
defaults["logFile"] = "mochitest.log"
@ -482,6 +486,8 @@ def main():
kwargs['gecko_path'] = options.geckoPath
if options.logcat_dir:
kwargs['logcat_dir'] = options.logcat_dir
if options.busybox:
kwargs['busybox'] = options.busybox
# needless to say sdcard is only valid if using an emulator
if options.sdcard:
kwargs['sdcard'] = options.sdcard