From: William Lallemand Date: Thu, 6 Mar 2025 20:02:02 +0000 (+0100) Subject: CI: github: show results of the Unit tests X-Git-Tag: v3.2-dev7~22 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=29db5406b4b008e86fef6f2ad63267be77aa3c71;p=thirdparty%2Fhaproxy.git CI: github: show results of the Unit tests Add a "Show Unit-Tests results" section which show each unit test which failed by displaying their result file. --- diff --git a/.github/workflows/vtest.yml b/.github/workflows/vtest.yml index c9bc131ad..64b1507d5 100644 --- a/.github/workflows/vtest.yml +++ b/.github/workflows/vtest.yml @@ -146,10 +146,6 @@ jobs: ulimit -n 65536 ulimit -c unlimited make reg-tests VTEST_PROGRAM=../vtest/vtest REGTESTS_TYPES=default,bug,devel - - name: Run Unit tests - id: unittests - run: | - make unit-tests - name: Show VTest results if: ${{ failure() && steps.vtest.outcome == 'failure' }} run: | @@ -160,7 +156,19 @@ jobs: echo "::endgroup::" done exit 1 - + - name: Run Unit tests + id: unittests + run: | + make unit-tests + - name: Show Unit-Tests results + if: ${{ failure() && steps.unittests.outcome == 'failure' }} + run: | + for result in ${TMPDIR:-/tmp}/ha-unittests-*/results/res.*; do + printf "::group::" + cat $result + echo "::endgroup::" + done + exit 1 - name: Show coredumps if: ${{ failure() && steps.vtest.outcome == 'failure' }} run: |