[at-spi2-core: 46/47] CI: Write a junit test log from pytest so gitlab can consume it




commit 7afe89d2508d20d64785098fb7b737be40a72720
Author: Federico Mena Quintero <federico gnome org>
Date:   Tue Jul 12 21:42:04 2022 -0500

    CI: Write a junit test log from pytest so gitlab can consume it

 .gitlab-ci.yml            | 5 ++++-
 ci/run-registryd-tests.sh | 5 ++++-
 2 files changed, 8 insertions(+), 2 deletions(-)
---
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 64811a95..740bc14d 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -63,11 +63,14 @@ opensuse-x86_64:
     - dbus-run-session -- ci/run-tests.sh
   artifacts:
     reports:
-      junit: "_build/meson-logs/testlog.junit.xml"
+      junit:
+        - "_build/meson-logs/testlog.junit.xml"
+        - "_build/tests/registryd/registryd-pytest.junit.xml"
     when: always
     name: "at-spi2-core-${CI_COMMIT_REF_NAME}"
     paths:
       - "_build/meson-logs"
+      - "_build/tests/registryd"
 
 fedora-x86_64:
   stage: build
diff --git a/ci/run-registryd-tests.sh b/ci/run-registryd-tests.sh
index a664b96a..62eb1118 100755
--- a/ci/run-registryd-tests.sh
+++ b/ci/run-registryd-tests.sh
@@ -17,5 +17,8 @@ gdbus call --session \
       --object-path /org/gnome/SessionManager \
       --method org.freedesktop.DBus.Mock.SetSessionRunning true
 
+mkdir -p _build/tests/registryd
+
 cd tests/registryd
-pytest -v
+
+pytest -v --junit-xml=../../_build/tests/registryd/registryd-pytest.junit.xml


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]