Bug 1475: test.py --list should sort the output
authorMitch Watrous <watrous@u.washington.edu>
Mon, 23 Jul 2012 17:45:28 -0700
changeset 8919 d5c54a93c3f7
parent 8918 fdcb94564cfa
child 8920 518fce9abcf9
Bug 1475: test.py --list should sort the output
test.py
--- a/test.py	Mon Jul 23 18:49:59 2012 +0200
+++ b/test.py	Mon Jul 23 17:45:28 2012 -0700
@@ -1113,7 +1113,8 @@
     if options.list:
         path_cmd = os.path.join("utils", test_runner_name + " --print-test-name-list")
         (rc, standard_out, standard_err, et) = run_job_synchronously(path_cmd, os.getcwd(), False, False)
-        print standard_out
+        list_items = standard_out.split('\n')
+        print "\n".join(sorted(list_items))
 
     if options.kinds or options.list:
         return