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