tests/run-tests.py
changeset 34269 20f547806a4d
parent 34268 278af5427773
child 34444 df78b1a24094
equal deleted inserted replaced
34268:278af5427773 34269:20f547806a4d
  2192         for tc, message in result.skipped:
  2192         for tc, message in result.skipped:
  2193             # According to the schema, 'skipped' has no attributes. So store
  2193             # According to the schema, 'skipped' has no attributes. So store
  2194             # the skip message as a text node instead.
  2194             # the skip message as a text node instead.
  2195             t = doc.createElement('testcase')
  2195             t = doc.createElement('testcase')
  2196             t.setAttribute('name', tc.name)
  2196             t.setAttribute('name', tc.name)
  2197             message = cdatasafe(message).decode('utf-8', 'replace')
  2197             binmessage = message.encode('utf-8')
       
  2198             message = cdatasafe(binmessage).decode('utf-8', 'replace')
  2198             cd = doc.createCDATASection(message)
  2199             cd = doc.createCDATASection(message)
  2199             skipelem = doc.createElement('skipped')
  2200             skipelem = doc.createElement('skipped')
  2200             skipelem.appendChild(cd)
  2201             skipelem.appendChild(cd)
  2201             t.appendChild(skipelem)
  2202             t.appendChild(skipelem)
  2202             s.appendChild(t)
  2203             s.appendChild(t)