CI: Always try to gather test results

Resulting test logs should be always attached to the task, regardless
of whether the test suite ran successfully or not.
master
Adrian Perez de Castro 2019-08-06 16:16:21 +03:00 committed by Ran Benita
parent ef74ee1b76
commit 789bd05c35
1 changed files with 6 additions and 1 deletions

View File

@ -14,8 +14,13 @@ steps:
- bash: | - bash: |
meson test --print-errorlogs \ meson test --print-errorlogs \
--wrap='valgrind --leak-check=full --track-origins=yes --error-exitcode=99' --wrap='valgrind --leak-check=full --track-origins=yes --error-exitcode=99'
displayName: 'Tests (Meson)'
workingDirectory: ${{ parameters.workdir }}
- bash: |
shopt -s nullglob
for file in "$(pwd)"/meson-logs/* ; do for file in "$(pwd)"/meson-logs/* ; do
echo "##vso[task.uploadfile]${file}" echo "##vso[task.uploadfile]${file}"
done done
displayName: 'Tests (Meson)' displayName: 'Save Results (Meson)'
workingDirectory: ${{ parameters.workdir }} workingDirectory: ${{ parameters.workdir }}
condition: always()