mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 00:47:45 +00:00
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:
parent
edaa5061c4
commit
b74f5b1ca1
1 changed files with 11 additions and 0 deletions
|
@ -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
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue