Dump json output for webrtc tests using gtest_parallel.

This is required step in order to upload tests results to ResultDB.

Bug: b/197492097
Change-Id: Ifff898997f6c9a3385659be34e7545217bb08f88
Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/238000
Commit-Queue: Jeremy Leconte <jleconte@google.com>
Reviewed-by: Christoffer Jansson <jansson@google.com>
Reviewed-by: Mirko Bonadei <mbonadei@webrtc.org>
Cr-Commit-Position: refs/heads/main@{#35385}
This commit is contained in:
Jeremy Leconte
2021-11-19 10:42:03 +01:00
committed by WebRTC LUCI CQ
parent a83f874d03
commit dc3a4c47d2
2 changed files with 8 additions and 0 deletions

View File

@ -411,6 +411,7 @@ class UnitTest(unittest.TestCase):
'../../testing/test_env.py',
'../../tools_webrtc/gtest-parallel-wrapper.py',
'--output_dir=${ISOLATED_OUTDIR}/test_logs',
'--dump_json_test_results=${ISOLATED_OUTDIR}/gtest_output.json',
'--gtest_color=no',
'--timeout=500',
'--workers=1',
@ -533,6 +534,7 @@ class UnitTest(unittest.TestCase):
'../../testing/test_env.py',
'../../tools_webrtc/gtest-parallel-wrapper.py',
'--output_dir=${ISOLATED_OUTDIR}/test_logs',
'--dump_json_test_results=${ISOLATED_OUTDIR}/gtest_output.json',
'--gtest_color=no',
'--timeout=900',
'--workers=1',
@ -583,6 +585,7 @@ class UnitTest(unittest.TestCase):
'../../testing/xvfb.py',
'../../tools_webrtc/gtest-parallel-wrapper.py',
'--output_dir=${ISOLATED_OUTDIR}/test_logs',
'--dump_json_test_results=${ISOLATED_OUTDIR}/gtest_output.json',
'--gtest_color=no',
'--timeout=900',
'--retry_failed=3',
@ -634,6 +637,7 @@ class UnitTest(unittest.TestCase):
'../../testing/test_env.py',
'../../tools_webrtc/gtest-parallel-wrapper.py',
'--output_dir=${ISOLATED_OUTDIR}\\test_logs',
'--dump_json_test_results=${ISOLATED_OUTDIR}\\gtest_output.json',
'--gtest_color=no',
'--timeout=900',
'--retry_failed=3',
@ -680,6 +684,7 @@ class UnitTest(unittest.TestCase):
'../../testing/test_env.py',
'../../tools_webrtc/gtest-parallel-wrapper.py',
'--output_dir=${ISOLATED_OUTDIR}/test_logs',
'--dump_json_test_results=${ISOLATED_OUTDIR}/gtest_output.json',
'--gtest_color=no',
'--timeout=900',
'--retry_failed=3',
@ -731,6 +736,7 @@ class UnitTest(unittest.TestCase):
'../../testing/test_env.py',
'../../tools_webrtc/gtest-parallel-wrapper.py',
'--output_dir=${ISOLATED_OUTDIR}/test_logs',
'--dump_json_test_results=${ISOLATED_OUTDIR}/gtest_output.json',
'--gtest_color=no',
'--timeout=900',
'--retry_failed=3',