diff options
author | don bright <hugh.m.bright@gmail.com> | 2013-02-25 03:20:11 (GMT) |
---|---|---|
committer | don bright <hugh.m.bright@gmail.com> | 2013-02-25 03:20:11 (GMT) |
commit | 3c9ea0e0b232be71b4a00a1494f8fb1abd58bd0b (patch) | |
tree | ac4030a1947a0dfdee734b5997506dcc9d1eee53 /tests/test_pretty_print.py | |
parent | 9896b6f15eced6d05a131ece44d60745e200b8f5 (diff) |
don't write wiki files by default. everything is in a single .html
use --wiki and/or --wiki-upload if you still want wiki output
Diffstat (limited to 'tests/test_pretty_print.py')
-rwxr-xr-x | tests/test_pretty_print.py | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/tests/test_pretty_print.py b/tests/test_pretty_print.py index a4b5e70..54b0f92 100755 --- a/tests/test_pretty_print.py +++ b/tests/test_pretty_print.py @@ -31,6 +31,8 @@ # auto-upload scripts available. wiki code should be removed and code # simplified. # +# to still use wiki, use args '--wiki' and/or '--wiki-upload' +# # 2. why is hash differing import string,sys,re,os,hashlib,subprocess,textwrap,time,platform @@ -354,6 +356,9 @@ def tohtml(wiki_rootpath, startdate, tests, enddate, sysinfo, sysid, makefiles): if not include_passed: s+= '<h3>Failed tests:</h3>\n' + if len(tests_to_report)==0: + s+= '<p>none</p>' + for t in tests_to_report: if t.type=='txt': s+='\n<pre>'+t.fullname+'</pre>\n' @@ -528,8 +533,10 @@ def main(): debug( 'writing ' + str(len(imgs)) + ' images' ) debug( 'writing ' + str(len(txtpages)-1) + ' text pages' ) debug( 'writing index.html ' ) - for pgname in sorted(imgs): trysave( os.path.join(wikidir,pgname), imgs[pgname]) - for pgname in sorted(txtpages): trysave( os.path.join(wikidir,pgname), txtpages[pgname]) + if '--wiki' in string.join(sys.argv): + print "wiki output is deprecated" + for pgname in sorted(imgs): trysave( os.path.join(wikidir,pgname), imgs[pgname]) + for pgname in sorted(txtpages): trysave( os.path.join(wikidir,pgname), txtpages[pgname]) htmldata = tohtml(wiki_rootpath, startdate, tests, enddate, sysinfo, sysid, makefiles) html_basename = sysid+'_report.html' |