@samitouri / QOSamiQemu / commits / 559d834371

gitlab: ensure "check-XXX' jobs capture functional test logs

A small subset of functional tests are run by default with 'make check', and so run in the context of 'check-XXX' CI jobs, rather than 'functional-XXX' CI jobs. Thus we need to capture the functional test logs unconditionally for all test jobs. Signed-off-by: Daniel P. Berrangé <berrange@redhat.com> Reviewed-by: Pierrick Bouvier <pierrick.bouvier@oss.qualcomm.com> Message-ID: <20260610121254.2870259-1-berrange@redhat.com> Message-ID: <20260619155657.944220-6-alex.bennee@linaro.org> Signed-off-by: Alex Bennée <alex.bennee@linaro.org>

Daniel P. Berrangé committed Jun 19, 2026 at 16:56 UTC 559d834371742589de62d47ad7be3df5857f8e58
1 file changed +9 -9
.gitlab-ci.d/buildtest-template.yml
+9 -9
@@ -78,6 +78,15 @@
78 extends: .meson_job_template
79 stage: test
80 image: $CI_REGISTRY_IMAGE/qemu/$IMAGE:$QEMU_CI_CONTAINER_TAG
81 + artifacts:
82 + name: "$CI_JOB_NAME-$CI_COMMIT_REF_SLUG"
83 + when: always
84 + expire_in: 7 days
85 + paths:
86 + - build/meson-logs
87 + - build/tests/functional/*/*/*.log
88 + reports:
89 + junit: build/meson-logs/*.junit.xml
90 script:
91 - source scripts/ci/gitlab-ci-section
92 - section_start buildenv "Setting up to run tests"
@@ -111,15 +120,6 @@
120 paths:
121 - ${CI_PROJECT_DIR}/functional-cache
122 policy: pull-push
114 - artifacts:
115 - name: "$CI_JOB_NAME-$CI_COMMIT_REF_SLUG"
116 - when: always
117 - expire_in: 7 days
118 - paths:
119 - - build/meson-logs
120 - - build/tests/functional/*/*/*.log
121 - reports:
122 - junit: build/meson-logs/*.junit.xml
123 before_script:
124 - export QEMU_TEST_ALLOW_UNTRUSTED_CODE=1
125 - export QEMU_TEST_CACHE_DIR=${CI_PROJECT_DIR}/functional-cache