status = 4
if fail:
- failtext = test.find('Results').find('Measurement').find('Value').text.encode('utf-8')
+ text = test.find('Results').find('Measurement').find('Value').text
+ if text == None: text=""
+ failtext = text.encode('utf-8')
failtextlines = failtext.replace('"','').split('\n')
failstatustxt = failtextlines[0].split(' ')[-1]
for i in range(0,len(failtextlines)):
if failstatustxt in statuslist:
status = statuslist.index(failstatustxt)
else:
- print "unknown status '%s'"%failstatustxt
+ print "unknown status '%s' in test %s "% (failstatustxt,name)
status=0
stati = [" 0 "," 1 "," 2 "," 3 "," + "]
group = name.split('/')[0]
status = 4
if fail:
- failtext = test.find('Results').find('Measurement').find('Value').text.encode('utf-8')
+ text = test.find('Results').find('Measurement').find('Value').text
+ if text == None: text=""
+ failtext = text.encode('utf-8')
failtextlines = failtext.replace('"','').split('\n')
failstatustxt = failtextlines[0].split(' ')[-1]
for i in range(0,len(failtextlines)):
if failstatustxt in statuslist:
status = statuslist.index(failstatustxt)
else:
- print "unknown status '%s'"%failstatustxt
+ print "unknown status '%s' in test %s "% (failstatustxt,name)
status=0
if not group in rev.groups: