|
Bugzilla – Full Text Bug Listing |
| Summary: | "test.py --list" should sort the output | ||
|---|---|---|---|
| Product: | ns-3 | Reporter: | Peter Barnes <pdbarnes> |
| Component: | test framework | Assignee: | Mitch Watrous <watrous> |
| Status: | RESOLVED FIXED | ||
| Severity: | normal | CC: | ns-bugs |
| Priority: | P5 | ||
| Version: | ns-3-dev | ||
| Hardware: | All | ||
| OS: | All | ||
Thanks for the patch. Bug closed. ns-3-dev changeset: d5c54a93c3f7 |
$ ./test.py --list [waf build check omitted] csma-system global-routing static-routing error-model mobility ns3-wifi-interference ... Output should be sorted: $ ./test.py --list [waf build check omitted] SequenceNumber angles animation-interface attributes average basic-data-calculators basic-energy-model ... Here's a patch: diff -r c1b33a377c2b test.py --- a/test.py Thu Jul 12 13:17:22 2012 -0700 +++ b/test.py Mon Jul 23 15:05:11 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