]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Generate and capture JUnit XML output from cross-version-config-tests
authorPetr Špaček <pspacek@isc.org>
Tue, 3 Oct 2023 09:15:39 +0000 (11:15 +0200)
committerPetr Špaček <pspacek@isc.org>
Wed, 4 Oct 2023 12:50:25 +0000 (14:50 +0200)
.gitlab-ci.yml

index 28510aad096138698ac5089f5932ebbeecddd99f..cfd11105b97a9ec864203374703abc85827eec02 100644 (file)
@@ -376,16 +376,19 @@ cross-version-config-tests:
     # intends to detect obvious backward compatibility issues with the latter.
     - sed -i -E "s|(export TOP_BUILDDIR)=.*|\1=${CI_PROJECT_DIR}|" conf.sh
     - >
-      "$PYTEST" --setup-only -n "${TEST_PARALLEL_JOBS:-1}"
+      "$PYTEST" --setup-only --junit-xml="$CI_PROJECT_DIR"/junit.xml -n "${TEST_PARALLEL_JOBS:-1}"
   needs:
     - job: autoreconf
       artifacts: true
   artifacts:
+    reports:
+      junit: junit.xml
     paths:
       - bind-*
+      - junit.xml
     untracked: true
     expire_in: "1 day"
-    when: on_failure
+    when: always
 
 .display_pytest_failures: &display_pytest_failures
     - awk '/^=+ FAILURES =+/{flag=1;next}/^=+.*=+$/{flag=0}flag' bin/tests/system/pytest.out.txt || true