summaryrefslogtreecommitdiffhomepage
path: root/scripts/common_bazel.sh
diff options
context:
space:
mode:
authorFabricio Voznika <fvoznika@google.com>2019-09-25 14:31:40 -0700
committergVisor bot <gvisor-bot@google.com>2019-09-25 14:33:11 -0700
commit129c67d68ee2db4aa3a45ab6970e7d26348ce5ef (patch)
tree46312bd9907ec43087d27225dbd7aa005a8a6811 /scripts/common_bazel.sh
parent59ccbb10446063f5347fb026e35549bc2f677971 (diff)
Fix runsc log collection in kokoro
PiperOrigin-RevId: 271207152
Diffstat (limited to 'scripts/common_bazel.sh')
-rwxr-xr-xscripts/common_bazel.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/common_bazel.sh b/scripts/common_bazel.sh
index dde0b51ed..ea2291a4d 100755
--- a/scripts/common_bazel.sh
+++ b/scripts/common_bazel.sh
@@ -80,7 +80,7 @@ function collect_logs() {
# Collect sentry logs, if any.
if [[ -v RUNSC_LOGS_DIR ]] && [[ -d "${RUNSC_LOGS_DIR}" ]]; then
local -r logs=$(ls "${RUNSC_LOGS_DIR}")
- if [[ -z "${logs}" ]]; then
+ if [[ "${logs}" ]]; then
tar --create --gzip --file="${KOKORO_ARTIFACTS_DIR}/${RUNTIME}.tar.gz" -C "${RUNSC_LOGS_DIR}" .
fi
fi