Do not error when no crashes from fuzzing

This commit is contained in:
Wilson Lin 2021-04-15 20:12:06 +10:00
parent 01e0027fff
commit e476c3fa42
1 changed files with 2 additions and 1 deletions

View File

@ -41,6 +41,7 @@ jobs:
echo core | sudo tee /proc/sys/kernel/core_pattern
# Hide verbose stdout (not stderr) logging.
timeout 5h cargo afl fuzz -i in -o out target/debug/minify-html-fuzz-target > /dev/null || true
find ./out/crashes -type f | wc -l
- name: Set up Backblaze B2 CLI
uses: wilsonzlin/setup-b2@v3
@ -49,4 +50,4 @@ jobs:
working-directory: ./fuzz
run: |
b2 authorize-account ${{ secrets.CICD_CLI_B2_KEY_ID }} ${{ secrets.CICD_CLI_B2_APPLICATION_KEY }}
b2 sync ./out/creashes/ b2://${{ secrets.CICD_CLI_B2_BUCKET_NAME }}/minify-html/fuzz/$(git rev-parse --short HEAD)/crashes/
b2 sync --allowEmptySource ./out/crashes/ b2://${{ secrets.CICD_CLI_B2_BUCKET_NAME }}/minify-html/fuzz/$(git rev-parse --short HEAD)/crashes/