Testing Result Check: check "okay" instead of "fail" because of possible crash

Now the check criteria is:
"sourcename::casename: okay \*\*\*"
if the string is not present, the test result will be failed.
This commit is contained in:
Chen Congwu 2009-11-12 02:49:50 +01:00 committed by Patrick Ohly
parent 9391fcdca9
commit 40470e6ec6
1 changed files with 3 additions and 3 deletions

View File

@ -252,11 +252,11 @@ def step2(resultdir, result, servers, indents, srcdir, shellprefix, backenddir):
casename = case.rpartition('_')[2].partition('.')[0]
result.write(indent+'<'+casename+'>')
match=format+'::'+casename
match=match+": \*\*\* fail"
match=match+": okay \*\*\*"
if(os.system("grep -q '" + match + "' "+case)):
result.write('okay')
result.write('failed')
else:
result.write('failed')
result.write('okay')
result.write('</'+casename+'>\n')
indents.pop()
indent = indents[-1]