summaryrefslogtreecommitdiff
path: root/tests/test_pretty_print.py
diff options
context:
space:
mode:
authorDon Bright <hugh.m.bright@gmail.com>2011-12-18 18:46:56 (GMT)
committerDon Bright <hugh.m.bright@gmail.com>2011-12-18 18:46:56 (GMT)
commit58b793679afdd268431b1a20309fceebae767689 (patch)
tree74647d557e3ab58e3dd4e498ef7bacba75903752 /tests/test_pretty_print.py
parent696c174b9133eda8a485f11dbc8a44d1674e5cba (diff)
parentd900ae9a843a5191666c3e3fc34639087bf7aa09 (diff)
Merge remote branch 'upstream/master'
Diffstat (limited to 'tests/test_pretty_print.py')
-rwxr-xr-xtests/test_pretty_print.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/test_pretty_print.py b/tests/test_pretty_print.py
index e377201..7407b15 100755
--- a/tests/test_pretty_print.py
+++ b/tests/test_pretty_print.py
@@ -432,8 +432,10 @@ def upload(wikiurl,api_php_path='/',wiki_rootpath='test', sysid='null', botname=
filename = os.path.join(wikidir,wikiname)
filedata = tryread(filename)
print 'upload',len(filedata),'bytes from',wikiname
- if wetrun:
+ if wetrun and len(filedata)>0:
wiki_upload(wikiurl,api_php_path,botname,botpass,filedata,wikiname)
+ if len(filedata)==0:
+ print 'cancelling empty upload'
def findlogfile(builddir):
logpath = os.path.join(builddir,'Testing','Temporary')
contact: Jan Huwald // Impressum