OSDN Git Service

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 cee7f05..6e5f692 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 d00c7d1..dafac74 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