Meta: Publish dumped ref-test images as an Azure CI artifact

Whenever the tests produce a `test-dumps` directory, publish the files
in it as an artifact. This lets us peek at the screenshots and see
what's mismatched, instead of just having to guess.
This commit is contained in:
Sam Atkins 2023-11-16 15:40:59 +00:00 committed by Tim Flynn
parent edaa5061c4
commit b74f5b1ca1
Notes: sideshowbarker 2024-07-17 03:51:15 +09:00

View file

@ -159,6 +159,17 @@ jobs:
UBSAN_OPTIONS: 'print_stacktrace=1:print_summary=1:halt_on_error=1' UBSAN_OPTIONS: 'print_stacktrace=1:print_summary=1:halt_on_error=1'
TESTS_ONLY: 1 TESTS_ONLY: 1
# Detect if any test dumps exist, which enables the next step to publish them as an artifact.
- bash: |
if [[ -d $(Build.SourcesDirectory)/Meta/Lagom/Build/Ladybird/test-dumps ]]; then
echo "##vso[task.setvariable variable=TestDumpsExist]true"
fi
condition: always()
- publish: $(Build.SourcesDirectory)/Meta/Lagom/Build/Ladybird/test-dumps
artifact: 'test-dumps-${{ parameters.os }}-${{ parameters.fuzzer }}'
condition: eq(variables.TestDumpsExist, 'true')
- ${{ if and(eq(parameters.fuzzer, 'NoFuzz'), eq(parameters.os, 'Linux') ) }}: - ${{ if and(eq(parameters.fuzzer, 'NoFuzz'), eq(parameters.os, 'Linux') ) }}:
- script: | - script: |
./run.sh ./run.sh