resultchecker: wrote 'calendar_todo' as tag name for 'calendar+todo'

'+' is a special character in the tag name, let's avoid it.
This commit is contained in:
Chen Congwu 2010-04-17 13:56:00 +08:00
parent 10bcfe2812
commit 3fb68fe84a
1 changed files with 5 additions and 2 deletions

View File

@ -244,7 +244,10 @@ def step2(resultdir, result, servers, indents, srcdir, shellprefix, backenddir):
indent +=space
indents.append(indent)
prefix = logprefix[format]
result.write(indent+'<'+format+' prefix="'+prefix+'">\n')
qformat = format;
if (qformat.find('calendar+todo') !=-1):
qformat = format.replace('calendar+todo', 'calendar_todo')
result.write(indent+'<'+qformat+' prefix="'+prefix+'">\n')
for case in logdic[format]:
indent +=space
indents.append(indent)
@ -259,7 +262,7 @@ def step2(resultdir, result, servers, indents, srcdir, shellprefix, backenddir):
result.write('</'+casename+'>\n')
indents.pop()
indent = indents[-1]
result.write(indent+'</'+format+'>\n')
result.write(indent+'</'+qformat+'>\n')
indents.pop()
indent = indents[-1]
result.write(indent+'</'+server+'>\n')