diff options
Diffstat (limited to 'kokoro')
-rw-r--r-- | kokoro/continuous.cfg | 2 | ||||
-rw-r--r-- | kokoro/presubmit.cfg | 1 | ||||
-rwxr-xr-x | kokoro/run_tests.sh | 3 |
3 files changed, 6 insertions, 0 deletions
diff --git a/kokoro/continuous.cfg b/kokoro/continuous.cfg index a834db198..8da47736a 100644 --- a/kokoro/continuous.cfg +++ b/kokoro/continuous.cfg @@ -7,5 +7,7 @@ action { define_artifacts { regex: "**/sponge_log.xml" regex: "**/sponge_log.log" + regex: "**/outputs.zip" + regex: "**/runsc-logs.tar.gz" } } diff --git a/kokoro/presubmit.cfg b/kokoro/presubmit.cfg index 2d8ab76d6..8da47736a 100644 --- a/kokoro/presubmit.cfg +++ b/kokoro/presubmit.cfg @@ -8,5 +8,6 @@ action { regex: "**/sponge_log.xml" regex: "**/sponge_log.log" regex: "**/outputs.zip" + regex: "**/runsc-logs.tar.gz" } } diff --git a/kokoro/run_tests.sh b/kokoro/run_tests.sh index 08f678e39..c5c6a7780 100755 --- a/kokoro/run_tests.sh +++ b/kokoro/run_tests.sh @@ -183,6 +183,9 @@ upload_test_artifacts() { find -L "bazel-testlogs" -name "test.xml" -o -name "test.log" -o -name "outputs.zip" | tar --create --files-from - --transform 's/test\./sponge_log./' | tar --extract --directory ${KOKORO_ARTIFACTS_DIR} + if [[ -d "/tmp/${RUNTIME}/logs" ]]; then + tar --create --gzip "--file=${KOKORO_ARTIFACTS_DIR}/runsc-logs.tar.gz" -C /tmp/ ${RUNTIME}/logs + fi } # Finish runs at exit, even in the event of an error, and uploads all test |