summaryrefslogtreecommitdiff
path: root/tests/test_pretty_print.py
diff options
context:
space:
mode:
authorDon Bright <hugh.m.bright@gmail.com>2011-12-07 05:00:45 (GMT)
committerDon Bright <hugh.m.bright@gmail.com>2011-12-07 05:00:45 (GMT)
commit067ebee76ac5bc5e00eb02244d7f7dbd7e6e2797 (patch)
tree4cdbd2b50006c435fb10348a188c325aaa6159dd /tests/test_pretty_print.py
parentc2d4f7558e43891df11709a0a9aa049e93560c30 (diff)
now uploads all images not just failed.
Diffstat (limited to 'tests/test_pretty_print.py')
-rwxr-xr-xtests/test_pretty_print.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/tests/test_pretty_print.py b/tests/test_pretty_print.py
index 3d42901..5e8092b 100755
--- a/tests/test_pretty_print.py
+++ b/tests/test_pretty_print.py
@@ -202,7 +202,7 @@ SYSINFO
start time: STARTDATE <br>
end time : ENDDATE <br>
-'''Failed image tests'''
+'''Image tests'''
<REPEAT1>
{| border=1 cellspacing=0 cellpadding=1
@@ -223,7 +223,7 @@ TESTLOG
</REPEAT1>
-'''Failed text tests'''
+'''Text tests'''
<REPEAT2>
{|border=1 cellspacing=0 cellpadding=1
@@ -413,6 +413,8 @@ def upload(wikiurl,api_php_path='/',wiki_rootpath='test', sysid='null', botname=
page.save(text +'\n*[['+rootpage+']]\n')
wikifiles = os.listdir(wikidir)
+ wikifiles = filter(lambda x: not x.endswith('html'), wikifiles)
+
print 'upload wiki pages:'
for wikiname in wikifiles:
filename = os.path.join(wikidir,wikiname)
@@ -420,6 +422,7 @@ def upload(wikiurl,api_php_path='/',wiki_rootpath='test', sysid='null', botname=
print 'upload',len(filedata),'bytes from',wikiname
if wetrun:
wiki_upload(wikiurl,api_php_path,botname,botpass,filedata,wikiname)
+
def findlogfile(builddir):
logpath = os.path.join(builddir,'Testing','Temporary')
logfilename = os.path.join(logpath,'LastTest.log.tmp')
contact: Jan Huwald // Impressum