Skip to content

Commit

Permalink
tests/psoc6/run_psoc6_tests.sh: Return error code on fails.
Browse files Browse the repository at this point in the history
Signed-off-by: enriquezgarc <enriquezgarcia.external@infineon.com>
  • Loading branch information
jaenrig-ifx authored and actions-user committed Feb 10, 2024
1 parent ea02612 commit 1a8356b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/psoc6/run_psoc6_tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -492,7 +492,8 @@ grep -i 'FAIL ' ${resultsFile} > ${failResultsFile}

echo "generating pass, skip and fail files done."

if [ -z "$failResultsFile" ]; then
failures="`cat ${failResultsFile}`"
if [ -z "${failures}" ]; then
exit 0
else
exit 1
Expand Down

0 comments on commit 1a8356b

Please sign in to comment.