diff options
author | Sebastian Dröge <sebastian.droege@collabora.co.uk> | 2012-07-24 10:54:46 +0200 |
---|---|---|
committer | Sebastian Dröge <sebastian.droege@collabora.co.uk> | 2012-07-24 10:54:46 +0200 |
commit | 272f9df9af04100db83b491699b4f84f45615f73 (patch) | |
tree | a68b9e0dc2959534ff51b47ce560dd32a7368314 | |
parent | ff7ae7d90b468b3be5e2a5e1869b1705e6782804 (diff) |
insanity-run: Improve -t help output by only printing test name and description
-rwxr-xr-x | bin/insanity-run | 18 |
1 files changed, 1 insertions, 17 deletions
diff --git a/bin/insanity-run b/bin/insanity-run index c6b5436..e3bd4fd 100755 --- a/bin/insanity-run +++ b/bin/insanity-run @@ -207,23 +207,7 @@ def test_help(): all_tests = list(insanity.utils.list_available_tests()) all_tests.extend(insanity.utils.list_available_scenarios()) for test in sorted(all_tests): - all_args = test.getFullArgumentList() - if not all_args: - arg_desc = "no arguments" - else: - arg_desc = ", ".join(sorted(all_args.keys())) - print " %s (%s)" % (test.__test_name__, arg_desc,) - - # This prints the full info, but the output is a bit messy then: - ## if all_args: - ## for arg_name, arg_info in sorted(all_args.iteritems()): - ## arg_doc, arg_default = arg_info[:2] - ## if arg_default is not None: - ## print " %s: %s (default: %r)" % (arg_name, arg_doc, arg_default,) - ## else: - ## print " %s: %s" % (arg_name, arg_doc,) - ## else: - ## print " (no arguments)" + print " %s (%s)" % (test.__test_name__, test.__test_description__,) def args_help(): |