Mercurial > mozilla > hg > MozillaTry
changeset 21:0cac33b7682a
forgot the very important platform variable
author | Jeff Hammel <jhammel@mozilla.com> |
---|---|
date | Fri, 07 Dec 2012 10:53:32 -0800 |
parents | 8587528177b4 |
children | dde820879dba |
files | mozillatry.py |
diffstat | 1 files changed, 5 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/mozillatry.py Thu Dec 06 16:47:52 2012 -0800 +++ b/mozillatry.py Fri Dec 07 10:53:32 2012 -0800 @@ -50,7 +50,7 @@ finally: reset(repo) -def try_syntax(opt=True, debug=True, unittests=('all'), talos=('all'), bug=None): +def try_syntax(opt=True, debug=True, platforms=('all',), unittests=('all',), talos=('all',), bug=None): """ return try syntax; see also: - https://github.com/pbiggar/trychooser @@ -58,8 +58,10 @@ """ assert opt or debug + assert platforms message = ['try:'] message += ['-b', '%s%s' % (('d' if debug else ''), ('o' if opt else ''))] + message += ['-p', ','.join(platforms)] message += ['-u', (','.join(unittests) if unittests else 'none')] message += ['-t', (','.join(talos) if talos else 'none')] if bug: @@ -82,6 +84,8 @@ 'help': "whether to try on opt builds"}, 'debug': {'default': True, 'help': "whether to try on debug builds"}, + 'platforms': {'default': [], + help="platforms to run on"}, 'unittests': {'default': [], 'help': "unit tests to run", 'flags': ['-u', '--unittests']},