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:
parent
9391fcdca9
commit
40470e6ec6
|
@ -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]
|
||||
|
|
Loading…
Reference in New Issue