From 4611b905af7d85edb284197a75e590192b9ef52c Mon Sep 17 00:00:00 2001
From: Tomas Krizek <tomas.krizek@nic.cz>
Date: Wed, 8 Jan 2020 14:31:28 +0100
Subject: [PATCH] tests/pytests: create and collect html report

The report has been previously removed, most likely by a mistake.
---
 .gitlab-ci.yml            | 5 +++++
 tests/pytests/meson.build | 2 ++
 2 files changed, 7 insertions(+)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 96e428269..294bc0df6 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -296,6 +296,11 @@ pytests:
   dependencies:
     - build-asan
   stage: extended  # use this stage to avoid clash with other resource-intensive jobs
+  artifacts:
+    when: always
+    paths:
+      - build_ci*/meson-logs/testlog*.txt
+      - tests/pytests/*.html
   script:
     - ${MESON_TEST} --suite pytests
 
diff --git a/tests/pytests/meson.build b/tests/pytests/meson.build
index 185f713d5..ffe5b8282 100644
--- a/tests/pytests/meson.build
+++ b/tests/pytests/meson.build
@@ -38,6 +38,8 @@ test(
   args: [
     '-m', 'pytest',
     '-d',
+    '--html', 'pytests.parallel.html',
+    '--self-contained-html',
     '-n', '24',
     '-v',
   ],
-- 
GitLab