azure: Simplify how we always publish test results
Use a more concise way of always publishing test results, even when tests failed
This commit is contained in:
parent
3354a64056
commit
bb01b10a27
|
@ -111,28 +111,21 @@ steps:
|
||||||
|
|
||||||
python run_tests.py --backend $(backend)
|
python run_tests.py --backend $(backend)
|
||||||
|
|
||||||
echo "##vso[task.setvariable variable=test_status]$LastExitCode"
|
|
||||||
|
|
||||||
continueOnError: true
|
|
||||||
|
|
||||||
- task: PublishTestResults@2
|
- task: PublishTestResults@2
|
||||||
inputs:
|
inputs:
|
||||||
testResultsFiles: meson-test-run.xml
|
testResultsFiles: meson-test-run.xml
|
||||||
testRunTitle: $(System.JobName)
|
testRunTitle: $(System.JobName)
|
||||||
publishRunAttachments: true
|
publishRunAttachments: true
|
||||||
|
condition: not(canceled())
|
||||||
|
|
||||||
- task: CopyFiles@2
|
- task: CopyFiles@2
|
||||||
inputs:
|
inputs:
|
||||||
contents: 'meson-test-run.*'
|
contents: 'meson-test-run.*'
|
||||||
targetFolder: $(Build.ArtifactStagingDirectory)
|
targetFolder: $(Build.ArtifactStagingDirectory)
|
||||||
|
condition: not(canceled())
|
||||||
|
|
||||||
- task: PublishBuildArtifacts@1
|
- task: PublishBuildArtifacts@1
|
||||||
inputs:
|
inputs:
|
||||||
artifactName: $(System.JobName)
|
artifactName: $(System.JobName)
|
||||||
# publishing artifacts from PRs from a fork is currently blocked
|
# publishing artifacts from PRs from a fork is currently blocked
|
||||||
condition: eq(variables['system.pullrequest.isfork'], false)
|
condition: eq(variables['system.pullrequest.isfork'], false)
|
||||||
|
|
||||||
- powershell: |
|
|
||||||
# after publishing test results, even if some failed
|
|
||||||
# exit with the test status
|
|
||||||
exit $(test_status)
|
|
||||||
|
|
Loading…
Reference in New Issue