Bug 1493 - test.py --list should show the test type
This commit is contained in:
12
test.py
12
test.py
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user