diff options
author | Don Bright <hugh.m.bright@gmail.com> | 2011-12-18 00:17:13 (GMT) |
---|---|---|
committer | Don Bright <hugh.m.bright@gmail.com> | 2011-12-18 00:17:13 (GMT) |
commit | 696c174b9133eda8a485f11dbc8a44d1674e5cba (patch) | |
tree | 18fe704f49c7e786d002187b9c47f685953dd62d /tests/test_pretty_print.py | |
parent | 3763f373b24902e494946611980b3759fba790ff (diff) |
make it so test_pretty_print by default only shows failed tests
Diffstat (limited to 'tests/test_pretty_print.py')
-rwxr-xr-x | tests/test_pretty_print.py | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/tests/test_pretty_print.py b/tests/test_pretty_print.py index 6fdc663..e377201 100755 --- a/tests/test_pretty_print.py +++ b/tests/test_pretty_print.py @@ -249,8 +249,8 @@ TESTLOG passed_tests = filter(lambda x: x.passed, tests) failed_tests = filter(lambda x: not x.passed, tests) - tests_to_report = tests - if failed_only: tests_to_report = failed_tests + tests_to_report = failed_tests + if include_passed: tests_to_report = tests try: percent = str(int(100.0*len(passed_tests) / len(tests))) except ZeroDivisionError: percent = 'n/a' @@ -317,8 +317,8 @@ def tohtml(wiki_rootpath, startdate, tests, enddate, sysinfo, sysid, makefiles): try: percent = str(int(100.0*len(passed_tests) / len(tests))) except ZeroDivisionError: percent = 'n/a' - tests_to_report = tests - if failed_only: tests_to_report = failed_tests + tests_to_report = failed_tests + if include_passed: tests_to_report = tests s='' @@ -495,7 +495,7 @@ maxretry = 10 if bool(os.getenv("TEST_GENERATE")): sys.exit(0) -failed_only = False -if '--failed-only' in sys.argv: failed_only = True +include_passed = False +if '--include-passed' in sys.argv: include_passed = True main() |