Skip to content
Snippets Groups Projects
Commit 1dd4ad08 authored by Jan Tattermusch's avatar Jan Tattermusch
Browse files

Merge pull request #3948 from adelez/add_interop_report

Fixed a couple places not updated with new jobset.run() return values.
parents 3499ac9d f2ca7bc0
No related branches found
No related tags found
No related merge requests found
...@@ -839,14 +839,14 @@ def _build_and_run( ...@@ -839,14 +839,14 @@ def _build_and_run(
root = ET.Element('testsuites') if xml_report else None root = ET.Element('testsuites') if xml_report else None
testsuite = ET.SubElement(root, 'testsuite', id='1', package='grpc', name='tests') if xml_report else None testsuite = ET.SubElement(root, 'testsuite', id='1', package='grpc', name='tests') if xml_report else None
if not jobset.run(all_runs, check_cancelled, number_failures, _ = jobset.run(
newline_on_success=newline_on_success, travis=travis, all_runs, check_cancelled, newline_on_success=newline_on_success,
infinite_runs=infinite_runs, travis=travis, infinite_runs=infinite_runs, maxjobs=args.jobs,
maxjobs=args.jobs, stop_on_failure=args.stop_on_failure,
stop_on_failure=args.stop_on_failure, cache=cache if not xml_report else None,
cache=cache if not xml_report else None, xml_report=testsuite,
xml_report=testsuite, add_env={'GRPC_TEST_PORT_SERVER': 'localhost:%d' % port_server_port})
add_env={'GRPC_TEST_PORT_SERVER': 'localhost:%d' % port_server_port}): if number_failures:
return 2 return 2
finally: finally:
for antagonist in antagonists: for antagonist in antagonists:
...@@ -855,8 +855,10 @@ def _build_and_run( ...@@ -855,8 +855,10 @@ def _build_and_run(
tree = ET.ElementTree(root) tree = ET.ElementTree(root)
tree.write(xml_report, encoding='UTF-8') tree.write(xml_report, encoding='UTF-8')
if not jobset.run(post_tests_steps, maxjobs=1, stop_on_failure=True, number_failures, _ = jobset.run(
newline_on_success=newline_on_success, travis=travis): post_tests_steps, maxjobs=1, stop_on_failure=True,
newline_on_success=newline_on_success, travis=travis)
if number_failures:
return 3 return 3
if cache: cache.save() if cache: cache.save()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment