Skip to content

Commit 027a18e

Browse files
committed
JUnit format must be specified in ctest_test() function
Excerpt from CTest documentation: https://cmake.org/cmake/help/latest/manual/ctest.1.html --output-junit <file> Added in version 3.21. Write test results in JUnit format. This option tells CTest to write test results to <file> in JUnit XML format. If <file> already exists, it will be overwritten. If using the -S option to run a dashboard script, use the OUTPUT_JUNIT keyword with the ctest_test() command instead.
1 parent cc6a35d commit 027a18e

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

.gitlab-ci.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ python3.12-gdal-bindings:
207207
needs:
208208
- job: ubuntu-24-prepare
209209
artifacts: true
210-
210+
211211
## RedHat superbuild
212212
redhat-prepare:
213213
extends: .common-prepare
@@ -298,7 +298,6 @@ ubuntu-qa-code-coverage:
298298
- ctest -V -S CI/main_qa.cmake
299299
-DIMAGE_NAME:string=ubuntu-22.04-llvm-qa
300300
-DQA:BOOL=ON
301-
--output-junit build/ctest_report.xml
302301
- ./CI/otb_coverage.sh
303302
needs:
304303
- job: ubuntu-22-prepare
@@ -444,4 +443,4 @@ release-docker:
444443
--context $CI_PROJECT_DIR
445444
--build-arg "OTB_RELEASE=$PACKAGE_OTB_VERSION"
446445
--dockerfile $CI_PROJECT_DIR/Docker/Dockerfile_CI
447-
--destination orfeotoolbox/otb:$CI_COMMIT_TAG
446+
--destination orfeotoolbox/otb:$CI_COMMIT_TAG

CI/main_ci.cmake

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -164,6 +164,7 @@ else()
164164
endif()
165165

166166
ctest_test(PARALLEL_LEVEL 8
167+
OUTPUT_JUNIT ctest_report.xml
167168
RETURN_VALUE _test_rv
168169
CAPTURE_CMAKE_ERROR _test_error
169170
)

0 commit comments

Comments
 (0)