From: Simon Glass <simon.glass@canonical.com> The python_check_template, used by the 'Check make check', 'Check make qcheck' and 'Check make tcheck' jobs, does not collect test artifacts. This means that when a test fails, the test-log.html file is not available for debugging. Add an after_script to copy the html/css files from the build directories, and an artifacts section to save them, matching what the buildman_and_testpy_template already does. Co-developed-by: Claude Opus 4.5 <noreply@anthropic.com> Signed-off-by: Simon Glass <simon.glass@canonical.com> --- .gitlab-ci.yml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 9cbadb43a85..509a2956ecb 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -418,6 +418,15 @@ Examples: # Set environment variables - export TOOLPATH="--toolpath ${pwd}/build-sandbox/tools --toolpath /opt/coreboot" - export PATH=/opt/qemu/bin:${PATH} + after_script: + - cp -v build-*/*.{html,css} . 2>/dev/null || true + - rm -rf /tmp/venv + artifacts: + when: always + paths: + - "*.html" + - "*.css" + expire_in: 1 week Check make check: extends: .python_check_template -- 2.43.0