From fa2914b13c5d94de8e6306182dc637c8fd02d719 Mon Sep 17 00:00:00 2001 From: David Chisnall Date: Sun, 26 Apr 2020 11:45:24 +0100 Subject: [PATCH] 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. --- azure-pipelines.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 8ce25a5..6653475 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -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