Bug 1223364 - talos --print-suites should list the tests associated to each suite. r=jmaher

This commit is contained in:
Julien Pagès 2015-11-10 14:34:15 +01:00
parent 1a62fde7f0
commit fadd089b9b

View File

@ -39,8 +39,11 @@ 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()