gitlab-ci: Put HTML summary in artifacts for failed piglit jobs
authorMichel Dänzer <mdaenzer@redhat.com>
Mon, 25 Nov 2019 17:42:10 +0000 (18:42 +0100)
committerMichel Dänzer <michel@daenzer.net>
Wed, 27 Nov 2019 09:20:31 +0000 (10:20 +0100)
This will make it easier to look at details of failed / skipped tests.

Acked-by: Daniel Stone <daniels@collabora.com>
Reviewed-by: Eric Anholt <eric@anholt.net>
.gitlab-ci.yml
.gitlab-ci/piglit/run.sh

index cee7f05872c7749d8a4ddae43ea3be5d256c63ae..6e5f6922c14b5ce28b9fc73c3741755a29008176 100644 (file)
@@ -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
index d00c7d1c3677e7eeb3e3fd9947aa5aea364b1e0f..dafac74d9f5e6cb63f74859a0e8fd06a84ee5635 100755 (executable)
@@ -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