Bug 1493 - test.py --list should show the test type

This commit is contained in:
Mitch Watrous
2012-09-12 14:59:21 -07:00
parent 271d248513
commit e2fec417ea
2 changed files with 35 additions and 7 deletions

12
test.py
View File

@@ -1112,12 +1112,18 @@ def run_tests():
if options.list:
if len(options.constrain):
path_cmd = os.path.join("utils", test_runner_name + " --print-test-name-list --test-type=%s" % options.constrain)
path_cmd = os.path.join("utils", test_runner_name + " --print-test-name-list --print-test-types --test-type=%s" % options.constrain)
else:
path_cmd = os.path.join("utils", test_runner_name + " --print-test-name-list")
path_cmd = os.path.join("utils", test_runner_name + " --print-test-name-list --print-test-types")
(rc, standard_out, standard_err, et) = run_job_synchronously(path_cmd, os.getcwd(), False, False)
list_items = standard_out.split('\n')
print "\n".join(sorted(list_items))
list_items.sort()
print "Test Type Test Name"
print "--------- ---------"
for item in list_items:
if len(item.strip()):
print item
print
if options.kinds or options.list:
return