Don't fail on ctest writing to stderr

When passing -T to ask CTest to generate XML output, CTest complains
about a missing TCL file.  This causes the build steps to fail.  To
avoid that, make sure the ctest invocation is the last line in the
script so that its error status will be reported.
main
David Chisnall 6 years ago committed by David Chisnall
parent 2d46c97544
commit fa2914b13c

@ -31,8 +31,9 @@ jobs:
- script: |
ctest -j 4 --output-on-failure -T test
workingDirectory: build
failOnStderr: true
failOnStderr: false
- task: PublishTestResults@2
inputs:
testResultsFormat: cTest
@ -101,10 +102,9 @@ jobs:
cd build
echo Copying objc.dll into Test directory...
copy /y objc.dll Test
echo Running CTest...
ctest -j 4 --output-on-failure -T test
echo CTest completed.
failOnStderr: true
failOnStderr: false
displayName: 'Test'
- task: PublishTestResults@2

Loading…
Cancel
Save