From bcc6120f9b7ce4187c56e0f83dd021674ccdec80 Mon Sep 17 00:00:00 2001 From: Don Bright Date: Tue, 29 Nov 2011 20:57:44 -0600 Subject: tweak pretty print diff --git a/tests/test_pretty_print.py b/tests/test_pretty_print.py index 3f5041d..6931c35 100755 --- a/tests/test_pretty_print.py +++ b/tests/test_pretty_print.py @@ -2,7 +2,7 @@ # # This program 'pretty prints' the ctest output, namely # files from builddir/Testing/Temporary. -# html & wiki output are produced +# html & wiki output are produced in Testing/Temporary/wiki # wiki uploading is available by running # # python test_pretty_print.py --upload @@ -17,6 +17,7 @@ # instead of having special '-info' prerun, put it as yet-another-test # and parse the log + import string,sys,re,os,hashlib,subprocess,textwrap def tryread(filename): @@ -88,6 +89,7 @@ def read_sysinfo(filename): hexhash = hexhash.hexdigest()[-4:].upper() hash = '' for c in hexhash: hash += chr(ord(c)+97-48) + sysid = osplain + '_' + machine + '_' + renderer + '_' + hash sysid = sysid.lower() @@ -233,7 +235,6 @@ TESTLOG elif t.type=='png': tmp = t.actualfile.replace(builddir,'') wikiname_a = wikify_filename(tmp,wiki_rootpath,sysid) - # erase /home/whatever/openscad/tests/regression tmp = t.expectedfile.replace(os.path.dirname(builddir),'') wikiname_e = wikify_filename(tmp,wiki_rootpath,sysid) imgs[wikiname_e] = t.expectedfile_data @@ -265,7 +266,7 @@ TESTLOG mainpage_wikiname = wiki_rootpath + '_' + sysid + '_test_report' txtpages[ mainpage_wikiname ] = s for mf in sorted(makefiles.keys()): - txtpages[ makefiles_wikinames[ mf ] ] = '
\n'+makefiles[mf]+'\n
' + txtpages[ makefiles_wikinames[ mf ] ] = '\n*Subreport from [['+mainpage_wikiname+']]\n\n\n
\n'+makefiles[mf]+'\n
' return imgs, txtpages -- cgit v0.10.1