Skip to content

Commit 57c251c

Browse files
author
tinzhu
committed
Run ctest with additional option "--output-junit" to generate JUnit format test result.
1 parent cd87763 commit 57c251c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/cmake_bootstrap.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ function test() {
4343
else
4444
repeat_fail=${CTEST_REPEAT_FAIL}
4545
fi
46-
ctest $parallel --timeout 1000 -O $1.txt -T test --no-compress-output --test-output-size-passed 4194304 --test-output-size-failed 4194304 --output-on-failure --repeat until-pass:${repeat_fail}
46+
ctest $parallel --timeout 1000 -O $1.txt -T test --no-compress-output --test-output-size-passed 4194304 --test-output-size-failed 4194304 --output-on-failure --repeat until-pass:${repeat_fail} --output-junit $1.xml
4747
popd
4848
grep -E "^(\s*[0-9]+|Total)" build/$1/$1.txt >build/$1.txt
4949
sed -i "s/\x1B\[[0-9;]*[JKmsu]//g" build/$1.txt

0 commit comments

Comments
 (0)