summaryrefslogtreecommitdiff
path: root/tests/test_pretty_print.py
diff options
context:
space:
mode:
authorMarius Kintel <marius@kintel.net>2011-12-19 18:42:13 (GMT)
committerMarius Kintel <marius@kintel.net>2011-12-19 18:42:13 (GMT)
commit32a888c8739c345f6fda4e313635777f76784f0c (patch)
treeda306d0bef29f8a8a334efb1fdb0be1d9af1e7be /tests/test_pretty_print.py
parentbce7212b612315ac4c90edeaaf8c7ed04ba7720c (diff)
parentc2d94835b0fab1455c2e9ac290abfa80e5a9b09b (diff)
Merge branch 'master' of https://github.com/donbright/openscad into donbright-master
Diffstat (limited to 'tests/test_pretty_print.py')
-rwxr-xr-xtests/test_pretty_print.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/tests/test_pretty_print.py b/tests/test_pretty_print.py
index 53fcc37..7407b15 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=''
@@ -497,7 +497,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()
contact: Jan Huwald // Impressum