diff --git a/tests/test_pretty_print.py b/tests/test_pretty_print.py
index fa8b3905..85f4ec7e 100755
--- a/tests/test_pretty_print.py
+++ b/tests/test_pretty_print.py
@@ -246,6 +246,10 @@ TESTLOG
imgs = {}
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
+
percent = str(int(100.0*len(passed_tests) / len(tests)))
s = wiki_template
repeat1 = ezsearch('(
' @@ -324,7 +332,7 @@ def tohtml(wiki_rootpath, startdate, tests, enddate, sysinfo, sysid, makefiles): s+= '\nPERCENTPASSED: '+ percent s+= '\n' - for t in tests: + for t in tests_to_report: if t.type=='txt': s+='\n
'+t.fullname+'\n' s+='
'+t.fulltestlog+'\n\n' @@ -481,4 +489,7 @@ builddir = os.getcwd() # os.getcwd()+'/build' verbose = False maxretry = 10 +failed_only = False +if '--failed-only' in sys.argv: failed_only = True + main()