fix bug in test_pretty_print, dont try to upload 0 byte files

stl_dim
Don Bright 2011-12-18 11:37:37 -06:00
parent bb62bf4ad9
commit d900ae9a84
1 changed files with 3 additions and 1 deletions

View File

@ -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')