Bug 921180 - Use b2g-bin if it exists, r=ahal

This commit is contained in:
Jonathan Griffin 2013-10-10 10:25:59 -07:00
Родитель 2da86dcc9e
Коммит 5df431b800
1 изменённых файлов: 4 добавлений и 3 удалений

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

@ -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: