diff options
author | Jan Tattermusch <jtattermusch@google.com> | 2018-09-14 11:48:27 -0700 |
---|---|---|
committer | Jan Tattermusch <jtattermusch@google.com> | 2018-09-25 23:10:54 +0200 |
commit | f952579464cf298bf9d0df3e5c3d4d74c666b903 (patch) | |
tree | f88129239b5dda25dbf13324d0574f6fe6775b32 /tools | |
parent | 87592fe9d9c54d6178966f40f4182e0bf6445380 (diff) |
make logs available by run_tests_matrix.py suites
Diffstat (limited to 'tools')
-rwxr-xr-x | tools/run_tests/run_tests_matrix.py | 18 |
1 files changed, 12 insertions, 6 deletions
diff --git a/tools/run_tests/run_tests_matrix.py b/tools/run_tests/run_tests_matrix.py index 1bbec94ee1..f8fcce45a4 100755 --- a/tools/run_tests/run_tests_matrix.py +++ b/tools/run_tests/run_tests_matrix.py @@ -43,9 +43,6 @@ _OBJC_RUNTESTS_TIMEOUT = 90 * 60 # Number of jobs assigned to each run_tests.py instance _DEFAULT_INNER_JOBS = 2 -# report suffix is important for reports to get picked up by internal CI -_REPORT_SUFFIX = 'sponge_log.xml' - def _safe_report_name(name): """Reports with '+' in target name won't show correctly in ResultStore""" @@ -54,7 +51,14 @@ def _safe_report_name(name): def _report_filename(name): """Generates report file name with directory structure that leads to better presentation by internal CI""" - return '%s/%s' % (_safe_report_name(name), _REPORT_SUFFIX) + # 'sponge_log.xml' suffix must be there for results to get recognized by kokoro. + return '%s/%s' % (_safe_report_name(name), 'sponge_log.xml') + + +def _report_logfilename(name): + """Generates report file name with directory structure that leads to better presentation by internal CI""" + # 'sponge_log.log' suffix must be there for test log to get recognized by kokoro. + return '%s/%s' % (_safe_report_name(name), 'sponge_log.log') def _docker_jobspec(name, @@ -75,7 +79,8 @@ def _docker_jobspec(name, ] + runtests_args, environ=runtests_envs, shortname='run_tests_%s' % name, - timeout_seconds=timeout_seconds) + timeout_seconds=timeout_seconds, + logfilename=_report_logfilename(name)) return test_job @@ -102,7 +107,8 @@ def _workspace_jobspec(name, ] + runtests_args, environ=env, shortname='run_tests_%s' % name, - timeout_seconds=timeout_seconds) + timeout_seconds=timeout_seconds, + logfilename=_report_logfilename(name)) return test_job |