Bug 1223364 - talos --print-suites should list the tests associated to each suite. r=jmaher
authorJulien Pagès <j.parkouss@gmail.com>
Tue, 10 Nov 2015 14:34:15 +0100
changeset 271931 d17561ee96dcdf1874202740352f9552843b5c68
parent 271930 c0ccc4c5af5e108c24b6b81c4a24502efc4cac65
child 271932 fbaf2ce77cf4d09cd8860a3b6ab3a684ec6d85cc
push id67799
push userj.parkouss@gmail.com
push dateTue, 10 Nov 2015 14:04:48 +0000
treeherdermozilla-inbound@d17561ee96dc [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjmaher
bugs1223364
milestone45.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1223364 - talos --print-suites should list the tests associated to each suite. r=jmaher
testing/talos/talos/cmdline.py
--- a/testing/talos/talos/cmdline.py
+++ b/testing/talos/talos/cmdline.py
@@ -34,18 +34,21 @@ class _ListTests(_StopAction):
             print  # Appends a single blank line to the end
         parser.exit()
 
 
 class _ListSuite(_StopAction):
     def __call__(self, parser, namespace, values, option_string=None):
         from talos.config import suites_conf
         print 'Available suites:'
-        for name in suites_conf():
-            print ' ', name
+        conf = suites_conf()
+        max_suite_name = max([len(s) for s in conf])
+        pattern = " %%-%ds (%%s)" % max_suite_name
+        for name in conf:
+            print pattern % (name, ':'.join(conf[name]['tests']))
         print
         parser.exit()
 
 
 def create_parser(mach_interface=False):
     parser = argparse.ArgumentParser()
     add_arg = parser.add_argument