summaryrefslogtreecommitdiff
path: root/tests/test_pretty_print.py
diff options
context:
space:
mode:
authorDon Bright <hugh.m.bright@gmail.com>2011-12-01 04:24:59 (GMT)
committerDon Bright <hugh.m.bright@gmail.com>2011-12-01 04:24:59 (GMT)
commitd6ad921f5f88d80556736f0a673a2c9ae8f9d945 (patch)
tree06c8030038c4031142ff19839364d64d1e179d66 /tests/test_pretty_print.py
parentb1b46e80707e0ca79f1dfb6aad67f44c7a8d719e (diff)
parent40815157a49892078905d3e55ca70722cbb89ac5 (diff)
Merge branch 'cakebaby' of github.com:donbright/openscad into cakebaby
Diffstat (limited to 'tests/test_pretty_print.py')
-rwxr-xr-xtests/test_pretty_print.py11
1 files changed, 8 insertions, 3 deletions
diff --git a/tests/test_pretty_print.py b/tests/test_pretty_print.py
index df29fe7..8f519d7 100755
--- a/tests/test_pretty_print.py
+++ b/tests/test_pretty_print.py
@@ -31,7 +31,8 @@
# 3. save the wikified data to disk
# todo
-# do something if tests for opencsg extensions fail (fail, no image production)
+# repair html output
+# do something if tests for GL extensions for OpenCSG fail (test fail, no image production)
# copy all images, sysinfo.txt to bundle for html/upload (images
# can be altered by subsequent runs)
# figure out hwo to make the thing run after the test
@@ -39,7 +40,9 @@
# why is hash differing
# instead of having special '-info' prerun, put it as yet-another-test
# and parse the log
-
+# fix windows so that it won't keep asking 'this program crashed' over and over.
+# (you can set this in the registry to never happen, but itd be better if the program
+# itself was able to disable that temporarily in it's own process)
import string,sys,re,os,hashlib,subprocess,textwrap
@@ -242,7 +245,6 @@ TESTLOG
passed_tests = filter(lambda x: x.passed, tests)
failed_tests = filter(lambda x: not x.passed, tests)
percent = str(int(100.0*len(passed_tests) / len(tests)))
- manifest = {}
s = wiki_template
repeat1 = ezsearch('(<REPEAT1>.*?</REPEAT1>)',s)
repeat2 = ezsearch('(<REPEAT2>.*?</REPEAT2>)',s)
@@ -296,6 +298,7 @@ TESTLOG
return imgs, txtpages
def wikitohtml(wiki_rootpath, sysid, wikidata, manifest):
+ # temporarily defunct/broken
head = '<html><head><title>'+wiki_rootpath+' test run for '+sysid +'</title></head><body>'
revmanifest = dict((val,key) for key, val in manifest.iteritems())
x=re.sub('\{\|(.*?)\n','<table \\1>\n',wikidata)
@@ -398,6 +401,8 @@ def main():
upload(wikisite,wiki_api_path,wiki_rootpath,sysid,'openscadbot',
'tobdacsnepo',wikidir,dryrun=dry)
+ print 'test_pretty_print complete'
+
#wikisite = 'cakebaby.referata.com'
#wiki_api_path = ''
wikisite = 'cakebaby.wikia.com'
contact: Jan Huwald // Impressum