diff options
author | Craig Tiller <ctiller@google.com> | 2016-01-28 11:01:39 -0800 |
---|---|---|
committer | Craig Tiller <ctiller@google.com> | 2016-01-28 11:01:39 -0800 |
commit | ddd91dbb42f6f52655738c6520548d04ea5f8468 (patch) | |
tree | 5b63390161f27cca4a46afac20850f29ace0b337 /tools | |
parent | 9fad88fecf1e0669b5b428beb2d67f25e3147a11 (diff) | |
parent | aab1e51bd3f4c33134f68fb25233189c6fd95ae0 (diff) |
Merge pull request #4941 from jtattermusch/runtests_buildonly_reports
Generate report.xml report with --build_only too
Diffstat (limited to 'tools')
-rwxr-xr-x | tools/run_tests/run_tests.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tools/run_tests/run_tests.py b/tools/run_tests/run_tests.py index fa4a37af6b..fbc74014e9 100755 --- a/tools/run_tests/run_tests.py +++ b/tools/run_tests/run_tests.py @@ -1059,13 +1059,15 @@ def _build_and_run( check_cancelled, newline_on_success, cache, xml_report=None, build_only=False): """Do one pass of building & running tests.""" # build latest sequentially - num_failures, _ = jobset.run( + num_failures, resultset = jobset.run( build_steps, maxjobs=1, stop_on_failure=True, newline_on_success=newline_on_success, travis=args.travis) if num_failures: return [BuildAndRunError.BUILD] if build_only: + if xml_report: + report_utils.render_junit_xml_report(resultset, xml_report) return [] # start antagonists |