Add witness information also for wrong results; but change status only for correct results
@@ -108,7 +108,6 @@ def main(argv=None):
for result in resultXML.findall('run'):
run = result.get('name')
- if 'correct' == result.findall('column[@title="category"]')[0].get('value'):
statusWit, categoryWit = (None, None)
i = 0
for witnessSet in witnessSets:
@@ -131,7 +130,7 @@ def main(argv=None):
):
statusWit, categoryWit = (statusWitNew, categoryWitNew)
# Overwrite status with status from witness
- if isOverwrite and statusWit is not None and categoryWit is not None:
+ if isOverwrite and 'correct' == result.findall('column[@title="category"]')[0].get('value') and statusWit is not None and categoryWit is not None:
result.findall('column[@title="status"]')[0].set('value', statusWit)
result.findall('column[@title="category"]')[0].set('value', categoryWit)
# Clean-up an entry that can be inferred by table-generator automatically, avoids path confusion
