Bug 1223364 - talos --print-suites should list the tests associated to each suite. r=jmaher, a=test-only
authorJulien Pagès <j.parkouss@gmail.com>
Tue, 10 Nov 2015 14:34:15 +0100
changeset 284980 c08c0b504debc7d219d9ff70dc45902f29fbe7d0
parent 284979 87aa3bcf4e4c9906985f6bcf1e23c307b8400bd3
child 284981 f339f85d742e28e801b4d7c25004538efd73e2b1
push id204
push usercbook@mozilla.com
push dateMon, 07 Dec 2015 11:02:39 +0000
reviewersjmaher, test-only
bugs1223364
milestone44.0a2
Bug 1223364 - talos --print-suites should list the tests associated to each suite. r=jmaher, a=test-only
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