tinderclient.bbclass: Update from .dev
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@543 311d38ba-8fff-0310-9ca6-ca027cbcb966
This commit is contained in:
parent
9cf2871aae
commit
f75754d05b
|
@ -13,12 +13,15 @@ def tinder_http_post(server, selector, content_type, body):
|
||||||
#print errcode, errmsg, headers
|
#print errcode, errmsg, headers
|
||||||
return (errcode,errmsg, headers, h.file)
|
return (errcode,errmsg, headers, h.file)
|
||||||
except:
|
except:
|
||||||
|
print "Error sending the report!"
|
||||||
# try again
|
# try again
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
# return some garbage
|
||||||
|
return (-1, "unknown", "unknown", None)
|
||||||
|
|
||||||
def tinder_form_data(bound, dict, log):
|
def tinder_form_data(bound, dict, log):
|
||||||
output = []
|
output = []
|
||||||
#br
|
|
||||||
# for each key in the dictionary
|
# for each key in the dictionary
|
||||||
for name in dict:
|
for name in dict:
|
||||||
output.append( "--" + bound )
|
output.append( "--" + bound )
|
||||||
|
@ -119,7 +122,7 @@ def tinder_build_start(d):
|
||||||
f.write(report)
|
f.write(report)
|
||||||
|
|
||||||
|
|
||||||
def tinder_send_http(d, status, log):
|
def tinder_send_http(d, status, _log):
|
||||||
"""
|
"""
|
||||||
Send this log as build status
|
Send this log as build status
|
||||||
"""
|
"""
|
||||||
|
@ -127,16 +130,19 @@ def tinder_send_http(d, status, log):
|
||||||
|
|
||||||
|
|
||||||
# get the body and type
|
# get the body and type
|
||||||
content_type, body = tinder_format_http_post(d,status,log)
|
|
||||||
server = data.getVar('TINDER_HOST', d, True )
|
server = data.getVar('TINDER_HOST', d, True )
|
||||||
url = data.getVar('TINDER_URL', d, True )
|
url = data.getVar('TINDER_URL', d, True )
|
||||||
|
|
||||||
selector = url + "/xml/build_status.pl"
|
selector = url + "/xml/build_status.pl"
|
||||||
|
|
||||||
# now post it
|
# now post it - in chunks of 10.000 charachters
|
||||||
errcode, errmsg, headers, h_file = tinder_http_post(server,selector,content_type, body)
|
new_log = _log
|
||||||
#print errcode, errmsg, headers
|
while len(new_log) > 0:
|
||||||
#print h.file.read()
|
content_type, body = tinder_format_http_post(d,status,new_log[0:18000])
|
||||||
|
errcode, errmsg, headers, h_file = tinder_http_post(server,selector,content_type, body)
|
||||||
|
#print errcode, errmsg, headers
|
||||||
|
#print h.file.read()
|
||||||
|
new_log = new_log[18000:]
|
||||||
|
|
||||||
|
|
||||||
def tinder_print_info(d):
|
def tinder_print_info(d):
|
||||||
|
|
Loading…
Reference in New Issue