summaryrefslogtreecommitdiffhomepage
path: root/kokoro/run_tests.sh
diff options
context:
space:
mode:
authorAndrei Vagin <avagin@google.com>2019-05-03 11:20:12 -0700
committerShentubot <shentubot@google.com>2019-05-03 11:21:22 -0700
commit3f3e3a63033f87dd42076423661b62c04d10c15f (patch)
tree07273107138b0fcde054748337d0b9fa0b08ccd0 /kokoro/run_tests.sh
parent458fe955a74bca6c33cb321901d771cf146f5cc6 (diff)
gvisor/kokoro: save runsc logs
PiperOrigin-RevId: 246542315 Change-Id: Ia9ba2bc104e0af3277d3b6102122c13d320ea802
Diffstat (limited to 'kokoro/run_tests.sh')
-rwxr-xr-xkokoro/run_tests.sh3
1 files changed, 3 insertions, 0 deletions
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