From 3c9ea0e0b232be71b4a00a1494f8fb1abd58bd0b Mon Sep 17 00:00:00 2001 From: don bright Date: Sun, 24 Feb 2013 21:20:11 -0600 Subject: 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 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+= '

Failed tests:

\n' + if len(tests_to_report)==0: + s+= '

none

' + for t in tests_to_report: if t.type=='txt': s+='\n
'+t.fullname+'
\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' -- cgit v0.10.1