CI: fix failing unit test reported as passed in summary, fixes #9170

This commit is contained in:
0penBrain
2023-04-26 16:55:32 +02:00
parent 9962db4838
commit c77b2f33c2

View File

@@ -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 "<details><summary>:fire: GTest C++ unit test suite failed</summary>" >> ${{ inputs.reportFile }}
else