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 305761 c08c0b504debc7d219d9ff70dc45902f29fbe7d0
parent 305760 87aa3bcf4e4c9906985f6bcf1e23c307b8400bd3
child 305762 f339f85d742e28e801b4d7c25004538efd73e2b1
push id1001
push userraliiev@mozilla.com
push dateMon, 18 Jan 2016 19:06:03 +0000
treeherdermozilla-release@8b89261f3ac4 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
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