diff talosnames/main.py @ 13:323a01abd180

putting off this fun for later
author Jeff Hammel <jhammel@mozilla.com>
date Tue, 10 Jul 2012 17:12:59 -0700
parents a4aa9f83e3be
children 2fc6c53931a1
line wrap: on
line diff
--- a/talosnames/main.py	Tue Jul 10 17:01:05 2012 -0700
+++ b/talosnames/main.py	Tue Jul 10 17:12:59 2012 -0700
@@ -5,8 +5,9 @@
 """
 
 import api
+import optparse
+import subprocess
 import sys
-import optparse
 from commandparser import CommandParser
 from pprint import pprint
 
@@ -34,6 +35,9 @@
 
     def command(self, suite):
         """returns the command that buildbot runs for a particular suite"""
+        command = self.api.buildbot_command(suite)
+        assert command is not None, "Suite not found; should be one of %s" % ', '.join(self.suites())
+        return subprocess.list2cmdline(command)
 
     def tests(self):
         pass