comparison mozillatry.py @ 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
comparison
equal deleted inserted replaced
20:8587528177b4 21:0cac33b7682a
48 call(['hg', 'qref', '--message', commit], cwd=repo) 48 call(['hg', 'qref', '--message', commit], cwd=repo)
49 call(['hg', 'push', '-f', _try], cwd=repo) 49 call(['hg', 'push', '-f', _try], cwd=repo)
50 finally: 50 finally:
51 reset(repo) 51 reset(repo)
52 52
53 def try_syntax(opt=True, debug=True, unittests=('all'), talos=('all'), bug=None): 53 def try_syntax(opt=True, debug=True, platforms=('all',), unittests=('all',), talos=('all',), bug=None):
54 """ 54 """
55 return try syntax; see also: 55 return try syntax; see also:
56 - https://github.com/pbiggar/trychooser 56 - https://github.com/pbiggar/trychooser
57 - http://trychooser.pub.build.mozilla.org/ 57 - http://trychooser.pub.build.mozilla.org/
58 """ 58 """
59 59
60 assert opt or debug 60 assert opt or debug
61 assert platforms
61 message = ['try:'] 62 message = ['try:']
62 message += ['-b', '%s%s' % (('d' if debug else ''), ('o' if opt else ''))] 63 message += ['-b', '%s%s' % (('d' if debug else ''), ('o' if opt else ''))]
64 message += ['-p', ','.join(platforms)]
63 message += ['-u', (','.join(unittests) if unittests else 'none')] 65 message += ['-u', (','.join(unittests) if unittests else 'none')]
64 message += ['-t', (','.join(talos) if talos else 'none')] 66 message += ['-t', (','.join(talos) if talos else 'none')]
65 if bug: 67 if bug:
66 message += ['--post-to-bugzilla', 'Bug', str(bug)] 68 message += ['--post-to-bugzilla', 'Bug', str(bug)]
67 return ' '.join(message) 69 return ' '.join(message)
80 load_help += ' [DEFAULT: %s]' % default_config_file 82 load_help += ' [DEFAULT: %s]' % default_config_file
81 options = {'opt': {'default': True, 83 options = {'opt': {'default': True,
82 'help': "whether to try on opt builds"}, 84 'help': "whether to try on opt builds"},
83 'debug': {'default': True, 85 'debug': {'default': True,
84 'help': "whether to try on debug builds"}, 86 'help': "whether to try on debug builds"},
87 'platforms': {'default': [],
88 help="platforms to run on"},
85 'unittests': {'default': [], 89 'unittests': {'default': [],
86 'help': "unit tests to run", 90 'help': "unit tests to run",
87 'flags': ['-u', '--unittests']}, 91 'flags': ['-u', '--unittests']},
88 'talostests': {'default': [], 92 'talostests': {'default': [],
89 'help': "talos tests to run", 93 'help': "talos tests to run",