comparison talosnames/main.py @ 16:1713b3e244a7

add some things
author Jeff Hammel <jhammel@mozilla.com>
date Tue, 10 Jul 2012 18:18:42 -0700
parents 2fc6c53931a1
children 25e91fc7ff01
comparison
equal deleted inserted replaced
15:2fc6c53931a1 16:1713b3e244a7
37 """returns the command that buildbot runs for a particular suite""" 37 """returns the command that buildbot runs for a particular suite"""
38 command = self.api.buildbot_command(suite) 38 command = self.api.buildbot_command(suite)
39 assert command is not None, "Suite not found; should be one of %s" % ', '.join(self.suites()) 39 assert command is not None, "Suite not found; should be one of %s" % ', '.join(self.suites())
40 return subprocess.list2cmdline(command) 40 return subprocess.list2cmdline(command)
41 41
42 def tests(self): 42 def tests(self, suite):
43 """return the talos test config for a buildbot suite name""" 43 """return the talos test config for a buildbot suite name"""
44 config = self.api.talos_config(suite)
44 45
45 def main(args=sys.argv[1:]): 46 def main(args=sys.argv[1:]):
46 parser = CommandParser(TalosNamesCLI) 47 parser = CommandParser(TalosNamesCLI)
47 parser.invoke(sys.argv[1:]) 48 parser.invoke(sys.argv[1:])
48 49