Skip to content
Snippets Groups Projects
Commit ddd91dbb authored by Craig Tiller's avatar Craig Tiller
Browse files

Merge pull request #4941 from jtattermusch/runtests_buildonly_reports

Generate report.xml report with --build_only too
parents 9fad88fe aab1e51b
No related branches found
No related tags found
No related merge requests found
...@@ -1059,13 +1059,15 @@ def _build_and_run( ...@@ -1059,13 +1059,15 @@ def _build_and_run(
check_cancelled, newline_on_success, cache, xml_report=None, build_only=False): check_cancelled, newline_on_success, cache, xml_report=None, build_only=False):
"""Do one pass of building & running tests.""" """Do one pass of building & running tests."""
# build latest sequentially # build latest sequentially
num_failures, _ = jobset.run( num_failures, resultset = jobset.run(
build_steps, maxjobs=1, stop_on_failure=True, build_steps, maxjobs=1, stop_on_failure=True,
newline_on_success=newline_on_success, travis=args.travis) newline_on_success=newline_on_success, travis=args.travis)
if num_failures: if num_failures:
return [BuildAndRunError.BUILD] return [BuildAndRunError.BUILD]
if build_only: if build_only:
if xml_report:
report_utils.render_junit_xml_report(resultset, xml_report)
return [] return []
# start antagonists # start antagonists
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment