From 3f3e3a63033f87dd42076423661b62c04d10c15f Mon Sep 17 00:00:00 2001 From: Andrei Vagin Date: Fri, 3 May 2019 11:20:12 -0700 Subject: gvisor/kokoro: save runsc logs PiperOrigin-RevId: 246542315 Change-Id: Ia9ba2bc104e0af3277d3b6102122c13d320ea802 --- kokoro/run_tests.sh | 3 +++ 1 file changed, 3 insertions(+) (limited to 'kokoro/run_tests.sh') 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 -- cgit v1.2.3