From c77b2f33c29b9f0f24ddadae4d43900fa720758b Mon Sep 17 00:00:00 2001 From: 0penBrain <48731257+0penBrain@users.noreply.github.com> Date: Wed, 26 Apr 2023 16:55:32 +0200 Subject: [PATCH] CI: fix failing unit test reported as passed in summary, fixes #9170 --- .github/workflows/actions/runCPPTests/action.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/actions/runCPPTests/action.yml b/.github/workflows/actions/runCPPTests/action.yml index e330fa5f6b..25985b9a39 100644 --- a/.github/workflows/actions/runCPPTests/action.yml +++ b/.github/workflows/actions/runCPPTests/action.yml @@ -47,7 +47,7 @@ runs: shell: bash run: | result=$(sed -ne "/Global test environment tear-down/,/^$/{/^$/d;p}" ${{ inputs.testLogFile }}) - if [ $(echo $result | grep -F "[ FAILED ]") ] + if grep -qF "[ FAILED ]" <<< $result then echo "
:fire: GTest C++ unit test suite failed" >> ${{ inputs.reportFile }} else