From a3b3d3bfccb4469d0dffd493dc0b5a0aae9660d1 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Michel=20D=C3=A4nzer?= Date: Mon, 25 Nov 2019 18:42:10 +0100 Subject: [PATCH] gitlab-ci: Put HTML summary in artifacts for failed piglit jobs This will make it easier to look at details of failed / skipped tests. Acked-by: Daniel Stone Reviewed-by: Eric Anholt --- .gitlab-ci.yml | 5 +++++ .gitlab-ci/piglit/run.sh | 2 ++ 2 files changed, 7 insertions(+) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index cee7f05872c..6e5f6922c14 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -473,6 +473,11 @@ scons-old-llvm: .piglit-test: extends: .test + artifacts: + when: on_failure + name: "$CI_JOB_NAME-$CI_COMMIT_REF_NAME" + paths: + - summary/ variables: LIBGL_ALWAYS_SOFTWARE: 1 PIGLIT_NO_WINDOW: 1 diff --git a/.gitlab-ci/piglit/run.sh b/.gitlab-ci/piglit/run.sh index d00c7d1c367..dafac74d9f5 100755 --- a/.gitlab-ci/piglit/run.sh +++ b/.gitlab-ci/piglit/run.sh @@ -22,6 +22,8 @@ if diff -q .gitlab-ci/piglit/$PIGLIT_RESULTS.txt{.baseline,}; then exit 0 fi +./piglit summary html --exclude-details=pass $OLDPWD/summary $OLDPWD/results + echo Unexpected change in results: diff -u .gitlab-ci/piglit/$PIGLIT_RESULTS.txt{.baseline,} exit 1 -- 2.30.2