Mercurial > mozilla > hg > MozillaTry
changeset 6:6f35d0d90c64
move more to configuration land
author | Jeff Hammel <jhammel@mozilla.com> |
---|---|
date | Tue, 04 Dec 2012 11:16:14 -0800 |
parents | 416f4562005c |
children | 51d1167cc684 |
files | mozillatry.py |
diffstat | 1 files changed, 9 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/mozillatry.py Tue Dec 04 11:09:45 2012 -0800 +++ b/mozillatry.py Tue Dec 04 11:16:14 2012 -0800 @@ -63,7 +63,7 @@ message += ['-u', (','.join(unittests) if unittests else 'none')] message += ['-t', (','.join(talos) if talos else 'none')] if bug: - message += ['--post-to-bugzilla', str(bug)] + message += ['--post-to-bugzilla', 'Bug', str(bug)] return ' '.join(message) class MozillaTryConfiguration(configuration.Configuration): @@ -85,7 +85,7 @@ } def __init__(self): - configuration.Configuration.__init__(usage=self.usage, load='--config') + configuration.Configuration.__init__(self, usage=self.usage, load='--config') def check(self, parser, options, args): """check configuration""" @@ -121,7 +121,8 @@ def main(args=sys.argv[1:]): # parse command line arguments - config = MozillaTryConfiguration() + parser = MozillaTryConfiguration() + options, args = parser.parse_args() # get mozilla-central repository directory try_directory = options.mozilla_central @@ -129,7 +130,11 @@ parser.error("mozilla-central directory does not exist: %s" % try_directory) # build try syntax - commit = try_syntax(**options.__dict__) + commit = try_syntax(opt=options.opt, + debug=options.debug, + unittests=options.unittests, + talos=options.talostests + ) print commit # push to try