Commit df402eb8 authored by Daniel Stone's avatar Daniel Stone Committed by Marge Bot
Browse files

ci/lava: Avoid tee as it ruins exit status

I was today years old when I learned this about classic composable UNIX
    ~/mesa/mesa lava-submitter-overlay * % bash
    [daniels@strictly mesa]$ set -e
    [daniels@strictly mesa]$ false | tee
    [daniels@strictly mesa]$ echo $?

Use tail rather than tee, so it doesn't hide our exit status.
Signed-off-by: Daniel Stone's avatarDaniel Stone <>
Part-of: <!11309>
parent 1788017e
......@@ -19,6 +19,8 @@ tar zcf job-rootfs-overlay.tar.gz -C results/job-rootfs-overlay/ .
ci-fairy minio login "${CI_JOB_JWT}"
ci-fairy minio cp job-rootfs-overlay.tar.gz "minio://${JOB_ROOTFS_OVERLAY_PATH}"
touch results/lava.log
tail -f results/lava.log &
artifacts/lava/ \
--dump-yaml \
--template artifacts/lava/lava.yml.jinja2 \
......@@ -32,4 +34,4 @@ artifacts/lava/ \
--kernel-image-name ${KERNEL_IMAGE_NAME} \
--kernel-image-type "${KERNEL_IMAGE_TYPE}" \
--boot-method ${BOOT_METHOD} \
--lava-tags "${LAVA_TAGS}" | tee results/lava.log
--lava-tags "${LAVA_TAGS}" >> results/lava.log
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment