зеркало из https://github.com/mozilla/gecko-dev.git
Bug 921180 - Use b2g-bin if it exists, r=ahal
This commit is contained in:
Родитель
2da86dcc9e
Коммит
5df431b800
|
@ -344,9 +344,10 @@ def run_desktop_mochitests(parser, options):
|
|||
marionette = Marionette.getMarionetteOrExit(**kwargs)
|
||||
mochitest = B2GDesktopMochitest(marionette, options.profile_data_dir)
|
||||
|
||||
# b2g desktop builds don't always have a b2g-bin file
|
||||
if options.app[-4:] == '-bin':
|
||||
options.app = options.app[:-4]
|
||||
# add a -bin suffix if b2g-bin exists, but just b2g was specified
|
||||
if options.app[-4:] != '-bin':
|
||||
if os.path.isfile("%s-bin" % options.app):
|
||||
options.app = "%s-bin" % options.app
|
||||
|
||||
options = MochitestOptions.verifyOptions(parser, options, mochitest)
|
||||
if options == None:
|
||||
|
|
Загрузка…
Ссылка в новой задаче