Skip to content

Commit

Permalink
show error details in internal_ci
Browse files Browse the repository at this point in the history
  • Loading branch information
jtattermusch committed May 4, 2017
1 parent 883fe50 commit 98ae39c
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions tools/run_tests/python_utils/report_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,13 +71,12 @@ def render_junit_xml_report(resultset, xml_report, suite_package='grpc',
xml_test = ET.SubElement(testsuite, 'testcase', name=shortname)
if result.elapsed_time:
xml_test.set('time', str(result.elapsed_time))
ET.SubElement(xml_test, 'system-out').text = _filter_msg(result.message,
'XML')
filtered_msg = _filter_msg(result.message, 'XML')
if result.state == 'FAILED':
ET.SubElement(xml_test, 'failure', message='Failure')
ET.SubElement(xml_test, 'failure', message='Failure').text = filtered_msg
failure_count += 1
elif result.state == 'TIMEOUT':
ET.SubElement(xml_test, 'error', message='Timeout')
ET.SubElement(xml_test, 'error', message='Timeout').text = filtered_msg
error_count += 1
elif result.state == 'SKIPPED':
ET.SubElement(xml_test, 'skipped', message='Skipped')
Expand Down

0 comments on commit 98ae39c

Please sign in to comment.